Primitive Type str [-]  [+]

String manipulation

For more details, see std::str

Trait Implementations

impl Repr<Slice<u8>> for str

fn repr(&self) -> T

impl Ord for str

fn cmp(&self, other: &str) -> Ordering

impl PartialEq for str

fn eq(&self, other: &str) -> bool

fn ne(&self, other: &str) -> bool

impl Eq for str

impl PartialOrd for str

fn partial_cmp(&self, other: &str) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl<S: Str> Equiv<S> for str

fn equiv(&self, other: &S) -> bool

impl Slice<uint, str> for str

fn as_slice_<'a>(&'a self) -> &'a str

fn slice_from_or_fail<'a>(&'a self, from: &uint) -> &'a str

fn slice_to_or_fail<'a>(&'a self, to: &uint) -> &'a str

fn slice_or_fail<'a>(&'a self, from: &uint, to: &uint) -> &'a str

impl Str for str

fn as_slice<'a>(&'a self) -> &'a str

impl StrExt for str

fn contains(&self, needle: &str) -> bool

fn contains_char<P: CharEq>(&self, pat: P) -> bool

fn chars(&self) -> Chars

fn bytes(&self) -> Bytes

fn char_indices(&self) -> CharIndices

fn split<P: CharEq>(&self, pat: P) -> Split<P>

fn splitn<P: CharEq>(&self, count: uint, pat: P) -> SplitN<P>

fn split_terminator<P: CharEq>(&self, pat: P) -> SplitTerminator<P>

fn rsplitn<P: CharEq>(&self, count: uint, pat: P) -> RSplitN<P>

fn match_indices<'a>(&'a self, sep: &'a str) -> MatchIndices<'a>

fn split_str<'a>(&'a self, sep: &'a str) -> SplitStr<'a>

fn lines(&self) -> Lines

fn lines_any(&self) -> LinesAny

fn char_len(&self) -> uint

fn slice(&self, begin: uint, end: uint) -> &str

fn slice_from(&self, begin: uint) -> &str

fn slice_to(&self, end: uint) -> &str

fn slice_chars(&self, begin: uint, end: uint) -> &str

unsafe fn slice_unchecked(&self, begin: uint, end: uint) -> &str

fn starts_with(&self, needle: &str) -> bool

fn ends_with(&self, needle: &str) -> bool

fn trim_matches<P: CharEq>(&self, pat: P) -> &str

fn trim_left_matches<P: CharEq>(&self, pat: P) -> &str

fn trim_right_matches<P: CharEq>(&self, pat: P) -> &str

fn is_char_boundary(&self, index: uint) -> bool

fn char_range_at(&self, i: uint) -> CharRange

fn char_range_at_reverse(&self, start: uint) -> CharRange

fn char_at(&self, i: uint) -> char

fn char_at_reverse(&self, i: uint) -> char

fn as_bytes(&self) -> &[u8]

fn find<P: CharEq>(&self, pat: P) -> Option<uint>

fn rfind<P: CharEq>(&self, pat: P) -> Option<uint>

fn find_str(&self, needle: &str) -> Option<uint>

fn slice_shift_char(&self) -> Option<(char, &str)>

fn subslice_offset(&self, inner: &str) -> uint

fn as_ptr(&self) -> *const u8

fn len(&self) -> uint

fn is_empty(&self) -> bool

impl<'a> Default for &'a str

fn default() -> &'a str

impl<S: Writer> Hash<S> for str

fn hash(&self, state: &mut S)

impl Show for str

fn fmt(&self, f: &mut Formatter) -> Result