Search results

There are no results.

std.utf8.surrogate?

Show source code
Hide source code
fn pub surrogate?(value: Int) -> Bool {
  value >= 0xD800 and value <= 0xDFFF
}
fn pub static surrogate?(value: Int) -> Bool

Returns true if the given Int falls in the range of UTF-16 surrogate pairs.

Examples

import std.utf8

utf8.surrogate?(0xD834) # => true