question: public boolean endsWith ( String string ) { if ( string == null ) return false ; int strlen = string . length ( ) ; if ( _length < strlen ) return false ; char [ ] buffer = _buffer ; int offset = _offset + _length - strlen ; while ( -- strlen >= 0 ) { if ( buffer [ offset + strlen ] != string . charAt ( strlen ) ) return false ; } return true ; }
target:  Returns true if the CharSegment ends with the string.