Logo Search packages:      
Sourcecode: icu version File versions  Download package

void StringPiece::remove_prefix ( int32_t  n  )  [inline]

Removes the first n string units.

Parameters:
n prefix length, must be non-negative and <=length() ICU 4.2

Definition at line 157 of file stringpiece.h.

                                {
    if (n >= 0) {
      if (n > length_) {
        n = length_;
      }
      ptr_ += n;
      length_ -= n;
    }
  }


Generated by  Doxygen 1.6.0   Back to index