Skip to content

Commit c981fa7

Browse files
committed
---
yaml --- r: 53981 b: refs/heads/dist-snap c: 8d5ab30 h: refs/heads/master i: 53979: 3897322 v: v3
1 parent bd72d7c commit c981fa7

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
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 4b0f29a4669491348e963f86de7f6ccc9d666e60
10+
refs/heads/dist-snap: 8d5ab3061ad2774883f273110a534477939162b1
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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)