Skip to content

Commit f7ff49d

Browse files
author
Jesse Ray
committed
---
yaml --- r: 83342 b: refs/heads/try c: 13571af h: refs/heads/master v: v3
1 parent 6ba2c09 commit f7ff49d

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
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: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5-
refs/heads/try: 5a78b54586a07afa65822aa2d079da334ae70ca3
5+
refs/heads/try: 13571af92fc8f2aa115ce1fcb8b82b5f654e5780
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/configure

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,6 @@ do
848848
# Disable term-info, linkage of which comes in multiple forms,
849849
# making our snapshots incompatible (#9334)
850850
LLVM_OPTS="$LLVM_OPTS --disable-terminfo"
851-
# Try to have LLVM pull in as few dependencies as possible (#9397)
852-
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
853851

854852
case "$CFG_C_COMPILER" in
855853
("ccache clang")

branches/try/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ fn main() {
26922692

26932693
In general, `use` creates an local alias:
26942694
An alternate path and a possibly different name to access the same item,
2695-
whiteout touching the original, and with both being interchangeable.
2695+
without touching the original, and with both being interchangeable.
26962696

26972697
## Reexporting names
26982698

branches/try/src/libstd/char.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ pub fn is_alphanumeric(c: char) -> bool {
128128
|| general_category::No(c)
129129
}
130130

131+
///
132+
/// Indicates whether a character is a control character. Control
133+
/// characters are defined in terms of the Unicode General Category
134+
/// 'Cc'.
135+
///
136+
#[inline]
137+
pub fn is_control(c: char) -> bool { general_category::Cc(c) }
138+
131139
/// Indicates whether the character is numeric (Nd, Nl, or No)
132140
#[inline]
133141
pub fn is_digit(c: char) -> bool {
@@ -354,6 +362,7 @@ pub trait Char {
354362
fn is_uppercase(&self) -> bool;
355363
fn is_whitespace(&self) -> bool;
356364
fn is_alphanumeric(&self) -> bool;
365+
fn is_control(&self) -> bool;
357366
fn is_digit(&self) -> bool;
358367
fn is_digit_radix(&self, radix: uint) -> bool;
359368
fn to_digit(&self, radix: uint) -> Option<uint>;
@@ -384,6 +393,8 @@ impl Char for char {
384393

385394
fn is_alphanumeric(&self) -> bool { is_alphanumeric(*self) }
386395

396+
fn is_control(&self) -> bool { is_control(*self) }
397+
387398
fn is_digit(&self) -> bool { is_digit(*self) }
388399

389400
fn is_digit_radix(&self, radix: uint) -> bool { is_digit_radix(*self, radix) }
@@ -494,6 +505,19 @@ fn test_to_digit() {
494505
assert_eq!('$'.to_digit(36u), None);
495506
}
496507

508+
#[test]
509+
fn test_is_control() {
510+
assert!('\u0000'.is_control());
511+
assert!('\u0003'.is_control());
512+
assert!('\u0006'.is_control());
513+
assert!('\u0009'.is_control());
514+
assert!('\u007f'.is_control());
515+
assert!('\u0092'.is_control());
516+
assert!(!'\u0020'.is_control());
517+
assert!(!'\u0055'.is_control());
518+
assert!(!'\u0068'.is_control());
519+
}
520+
497521
#[test]
498522
fn test_is_digit() {
499523
assert!('2'.is_digit());
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
22
# The actual contents of this file do not matter, but to trigger a change on the
33
# build bots then the contents should be changed so git updates the mtime.
4-
2013-09-23
4+
2013-09-22

0 commit comments

Comments
 (0)