code: private final boolean isFollowedByCasedLetter(ContextIterator iter, int dir) {
          int c;
  
          if(iter==null) {
              return false;
          }
  
          for(iter.reset(dir); (c=iter.next())>=0;) {
              int type=getTypeOrIgnorable(c);
              if((type&4)!=0) {
                  /* case-ignorable, continue with the loop */
              } else if(type!=NONE) {
                  return true; /* followed by cased letter */
              } else {
                  return false; /* uncased and not case-ignorable */
              }
          }
  
          return false; /* not followed by cased letter */
      }
docs: /* Is followed by {case-ignorable}* cased  ? (dir determines looking forward/backward)