code: protected int transitionsUpperBound(int state) {
          return state + 1 < d_stateOffsets.size() ? d_stateOffsets.get(state + 1) :
                  d_transitionChars.length;
      }
docs: Calculate the upper bound for this state in the transition table.
  
  @param state
  @return