code: static boolean doesNotNeedBidi(CharSequence s, int start, int end) {
          for (int i = start; i < end; i++) {
              if (s.charAt(i) >= FIRST_RIGHT_TO_LEFT) {
                  return false;
              }
          }
          return true;
      }
docs: /* package