Skip to content

Instantly share code, notes, and snippets.

@dwarring
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwarring/9436043 to your computer and use it in GitHub Desktop.
Save dwarring/9436043 to your computer and use it in GitHub Desktop.
# from chr() in nqp/src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
if ((val >= 0xfdd0
&& (val <= 0xfdef // non character
|| ((val & 0xfffe) == 0xfffe) // non character
|| val > 0x10ffff) // out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment