Home | History | Annotate | Download | only in protobuf

Lines Matching defs:substring

292    * Takes a substring of this one. This involves recursive descent along the
293 * left and right edges of the substring, and referencing any wholly contained
294 * segments in between. Any leaf nodes entirely uninvolved in the substring
295 * will not be referenced by the substring.
303 * @return substring leaf node or tree
306 public ByteString substring(int beginIndex, int endIndex) {
310 // Empty substring
319 // Proper substring
321 // Substring on the left
322 return left.substring(beginIndex, endIndex);
326 // Substring on the right
327 return right.substring(beginIndex - leftLength, endIndex - leftLength);
330 // Split substring
331 ByteString leftSub = left.substring(beginIndex);
332 ByteString rightSub = right.substring(0, endIndex - leftLength);
335 // RopeByteString we're taking a substring of.