Home | History | Annotate | Download | only in base

Lines Matching refs:length

353    * and US is least inclusive.  (The content and length of a File, Group,
364 * and US is least inclusive. (The content and length of a File, Group,
375 * and US is least inclusive. (The content and length of a File, Group,
386 * and US is least inclusive. (The content and length of a File, Group,
438 int length = string.length();
439 for (int i = 0; i < length; i++) {
442 for (; i < length; i++) {
465 int length = chars.length();
466 StringBuilder builder = new StringBuilder(length);
467 for (int i = 0; i < length; i++) {
487 int length = string.length();
488 for (int i = 0; i < length; i++) {
491 for (; i < length; i++) {
514 int length = chars.length();
515 StringBuilder builder = new StringBuilder(length);
516 for (int i = 0; i < length; i++) {
551 * Truncates the given character sequence to the given maximum length. If the length of the
553 * {@code maxLength} chars in length and will end with the given {@code truncationIndicator}.
578 * @throws IllegalArgumentException if {@code maxLength} is less than the length of
587 // length to truncate the sequence to, not including the truncation indicator
588 int truncationLength = maxLength - truncationIndicator.length();
590 // in this worst case, this allows a maxLength equal to the length of the truncationIndicator,
593 "maxLength (%s) must be >= length of the truncation indicator (%s)",
594 maxLength, truncationIndicator.length());
596 if (seq.length() <= maxLength) {
598 if (string.length() <= maxLength) {
601 // if the length of the toString() result was > maxLength for some reason, truncate that
633 // Calling length() is the null pointer check (so do it before we can exit early).
634 int length = s1.length();
638 if (length != s2.length()) {
641 for (int i = 0; i < length; i++) {