decodeEscape method

String decodeEscape(
  1. int e
)

Implementation

String decodeEscape(int e) {
  if ( e == 34 ) {
    return String.fromCharCode(34);
  }
  if ( e == 92 ) {
    return String.fromCharCode(92);
  }
  if ( e == 47 ) {
    return String.fromCharCode(47);
  }
  if ( e == 98 ) {
    return String.fromCharCode(8);
  }
  if ( e == 102 ) {
    return String.fromCharCode(12);
  }
  if ( e == 110 ) {
    return String.fromCharCode(10);
  }
  if ( e == 114 ) {
    return String.fromCharCode(13);
  }
  if ( e == 116 ) {
    return String.fromCharCode(9);
  }
  if ( e == 117 ) {
    int cp = 0;
    int k = 0;
    while (k < 4) {
      int hc = s.codeUnitAt((i + 1) + k);
      cp = cp * 16 + this.hexDigit(hc);
      k = k + 1;
    }
    i = i + 4;
    return String.fromCharCode(cp);
  }
  return String.fromCharCode(e);
}