diff options
| author | Luca Bruno <lucab@debian.org> | 2014-03-08 00:27:49 +0100 |
|---|---|---|
| committer | Luca Bruno <lucab@debian.org> | 2014-03-08 09:10:12 +0100 |
| commit | 331f9077a035b201e7bddfabae503ba72c3ab1de (patch) | |
| tree | f2e61c4cdaf5cbd858cc3251774f1936ba59f60f /src/libstd | |
| parent | 9b3c63bdd5ef9d772e3c74061761e5c0b326f9c0 (diff) | |
| download | rust-331f9077a035b201e7bddfabae503ba72c3ab1de.tar.gz rust-331f9077a035b201e7bddfabae503ba72c3ab1de.zip | |
doc: add two missing char methods doc-strings
XID_* property are defined in UAX #31, just reference it here. Signed-off-by: Luca Bruno <lucab@debian.org>
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/char.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libstd/char.rs b/src/libstd/char.rs index ce9336d4909..4c0f77586db 100644 --- a/src/libstd/char.rs +++ b/src/libstd/char.rs @@ -94,9 +94,19 @@ pub fn from_u32(i: u32) -> Option<char> { /// Returns whether the specified `char` is considered a Unicode alphabetic /// code point pub fn is_alphabetic(c: char) -> bool { derived_property::Alphabetic(c) } -#[allow(missing_doc)] + +/// Returns whether the specified `char` satisfies the 'XID_Start' Unicode property +/// +/// 'XID_Start' is a Unicode Derived Property specified in +/// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications), +/// mostly similar to ID_Start but modified for closure under NFKx. pub fn is_XID_start(c: char) -> bool { derived_property::XID_Start(c) } -#[allow(missing_doc)] + +/// Returns whether the specified `char` satisfies the 'XID_Continue' Unicode property +/// +/// 'XID_Continue' is a Unicode Derived Property specified in +/// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications), +/// mostly similar to 'ID_Continue' but modified for closure under NFKx. pub fn is_XID_continue(c: char) -> bool { derived_property::XID_Continue(c) } /// |
