code: protected int transition(int current, char c)
      {
          int b = current;
          int p;
  
          p = b + c + 1;
          if (b == check[p])
              b = base[p];
          else
              return -1;
  
          p = b;
          return p;
      }
docs: 转移状态
  
  @param current
  @param c
  @return