Skip to content

Commit

Permalink
Merge remote-tracking branch 'huonw/inline-helpers'
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Feb 23, 2014
2 parents eb33955 + 713ca7d commit d08952c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static TAG_FOUR_B: uint = 240u;
pub static MAX: char = '\U0010ffff';

/// Convert from `u32` to a character.
#[inline]
pub fn from_u32(i: u32) -> Option<char> {
// catch out-of-bounds and surrogates
if (i > MAX as u32) || (i >= 0xD800 && i <= 0xDFFF) {
Expand Down
1 change: 1 addition & 0 deletions src/libstd/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ static UTF8_CHAR_WIDTH: [u8, ..256] = [
];

/// Given a first byte, determine how many bytes are in this UTF-8 character
#[inline]
pub fn utf8_char_width(b: u8) -> uint {
return UTF8_CHAR_WIDTH[b] as uint;
}
Expand Down

5 comments on commit d08952c

@bors
Copy link
Contributor

@bors bors commented on d08952c Feb 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at brson@d08952c

@bors
Copy link
Contributor

@bors bors commented on d08952c Feb 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brson/rust/rollup = d08952c into auto

@bors
Copy link
Contributor

@bors bors commented on d08952c Feb 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brson/rust/rollup = d08952c merged ok, testing candidate = 76b262f

@bors
Copy link
Contributor

@bors bors commented on d08952c Feb 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on d08952c Feb 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 76b262f

Please sign in to comment.