repl.txt (479B)
1 2 {{alias}}( str, pos ) 3 Tests if a position in a string marks the start of a UTF-16 surrogate pair. 4 5 Parameters 6 ---------- 7 str: string 8 Input string. 9 10 pos: integer 11 Position. 12 13 Returns 14 ------- 15 bool: boolean 16 Boolean indicating whether surrogate pair exists at specified position. 17 18 Examples 19 -------- 20 > var out = {{alias}}( '🌷', 0 ) 21 true 22 > out = {{alias}}( '🌷', 1 ) 23 false 24 25 See Also 26 -------- 27