diff options
Diffstat (limited to 'src/libstd/unicode.rs')
| -rw-r--r-- | src/libstd/unicode.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/unicode.rs b/src/libstd/unicode.rs index 5038721d26e..a3d11cbc55b 100644 --- a/src/libstd/unicode.rs +++ b/src/libstd/unicode.rs @@ -151,16 +151,16 @@ mod icu { #[link_name = "icuuc"] #[abi = "cdecl"] native mod libicu { - fn u_hasBinaryProperty(c: UChar32, which: UProperty) -> UBool; + pure fn u_hasBinaryProperty(c: UChar32, which: UProperty) -> UBool; } } -fn is_XID_start(c: char) -> bool { +pure fn is_XID_start(c: char) -> bool { ret icu::libicu::u_hasBinaryProperty(c, icu::UCHAR_XID_START) == icu::TRUE; } -fn is_XID_continue(c: char) -> bool { +pure fn is_XID_continue(c: char) -> bool { ret icu::libicu::u_hasBinaryProperty(c, icu::UCHAR_XID_START) == icu::TRUE; } |
