File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
branches/dist-snap/src/libcore Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
9
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10
- refs/heads/dist-snap: 4b0f29a4669491348e963f86de7f6ccc9d666e60
10
+ refs/heads/dist-snap: 8d5ab3061ad2774883f273110a534477939162b1
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -2263,6 +2263,7 @@ pub trait StrSlice {
2263
2263
pure fn is_whitespace(&self) -> bool;
2264
2264
pure fn is_alphanumeric(&self) -> bool;
2265
2265
pure fn len(&self) -> uint;
2266
+ pure fn char_len(&self) -> uint;
2266
2267
pure fn slice(&self, begin: uint, end: uint) -> ~str;
2267
2268
pure fn split(&self, sepfn: &fn(char) -> bool) -> ~[~str];
2268
2269
pure fn split_char(&self, sep: char) -> ~[~str];
@@ -2343,9 +2344,12 @@ impl StrSlice for &'self str {
2343
2344
*/
2344
2345
#[inline]
2345
2346
pure fn is_alphanumeric(&self) -> bool { is_alphanumeric(*self) }
2346
- #[inline]
2347
2347
/// Returns the size in bytes not counting the null terminator
2348
+ #[inline]
2348
2349
pure fn len(&self) -> uint { len(*self) }
2350
+ /// Returns the number of characters that a string holds
2351
+ #[inline]
2352
+ pure fn char_len(&self) -> uint { char_len(*self) }
2349
2353
/**
2350
2354
* Returns a slice of the given string from the byte range
2351
2355
* [`begin`..`end`)
You can’t perform that action at this time.
0 commit comments