std: declared fns as pure where sensible
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user