• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/03_stdlib/22_uchr

  1 The `uchr()` function takes a series of code point values and turns them
  2 into an UTF-8 encoded string. The resulting string will have as many
  3 characters as there were arguments to the function. The number of bytes
  4 per character varies between 1 to 4, depending on the code point value.
  5 
  6 Invalid numeric arguments or arguments being out of range 0-0x10FFFF will
  7 be encoded as the Unicode replacement character 0xFFFD.
  8 
  9 Returns the resulting UTF-8 string.
 10 
 11 -- Testcase --
 12 {{ uchr(0x2600, 0x2601, 0x2602) }}
 13 {{ uchr("inval", -1, 0xffffffff) }}
 14 -- End --
 15 
 16 -- Expect stdout --
 17 ☀☁☂
 18 ���
 19 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt