Skip to content

Commit 1e86b53

Browse files
committed
---
yaml --- r: 50805 b: refs/heads/try c: 8d5ab30 h: refs/heads/master i: 50803: b945e0e v: v3
1 parent 9328360 commit 1e86b53

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5-
refs/heads/try: 4b0f29a4669491348e963f86de7f6ccc9d666e60
5+
refs/heads/try: 8d5ab3061ad2774883f273110a534477939162b1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libcore/str.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,7 @@ pub trait StrSlice {
22632263
pure fn is_whitespace(&self) -> bool;
22642264
pure fn is_alphanumeric(&self) -> bool;
22652265
pure fn len(&self) -> uint;
2266+
pure fn char_len(&self) -> uint;
22662267
pure fn slice(&self, begin: uint, end: uint) -> ~str;
22672268
pure fn split(&self, sepfn: &fn(char) -> bool) -> ~[~str];
22682269
pure fn split_char(&self, sep: char) -> ~[~str];
@@ -2343,9 +2344,12 @@ impl StrSlice for &'self str {
23432344
*/
23442345
#[inline]
23452346
pure fn is_alphanumeric(&self) -> bool { is_alphanumeric(*self) }
2346-
#[inline]
23472347
/// Returns the size in bytes not counting the null terminator
2348+
#[inline]
23482349
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) }
23492353
/**
23502354
* Returns a slice of the given string from the byte range
23512355
* [`begin`..`end`)

0 commit comments

Comments
 (0)