B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Decoded character.
   *
   * @throws NullCharError if a NUL character read.
   * @throws CodeError if an invalid character read.
   */
@param data
A wrapped object containing raw PDU data.

@return Decoded character.

@throws NullCharError if a NUL character read.
@throws CodeError if an invalid character read.
@param data A wrapped object containing raw PDU data . @return Decoded character . @throws NullCharError if a NUL character read . @throws CodeError if an invalid character read .
function decode(data) {
    let code = Octet.decode(data);
    if ((code < ASCIIS) && (code >= CTLS)) {
      if ((code == HT) || (code == SP)
          || (code == 34) || (code == 40) || (code == 41) 
          || (code == 44) || (code == 47)                 
          || ((code >= 58) && (code <= 64))               
          || ((code >= 91) && (code <= 93))               
          || (code == 123) || (code == 125)) {            
        throw new CodeError("Token: invalid char code " + code);
      }
      return String.fromCharCode(code);
    }
    if (code == NUL) {
      throw new NullCharError();
    }
    throw new CodeError("Token: invalid char code " + code);
  }
function decode ( data ) { let code = Octet . decode ( data ) ; if ( ( code < ASCIIS ) && ( code >= CTLS ) ) { if ( ( code == HT ) || ( code == SP ) || ( code == 34 ) || ( code == 40 ) || ( code == 41 ) || ( code == 44 ) || ( code == 47 ) || ( ( code >= 58 ) && ( code <= 64 ) ) || ( ( code >= 91 ) && ( code <= 93 ) ) || ( code == 123 ) || ( code == 125 ) ) { throw new CodeError ( "Token: invalid char code " + code ) ; } return String . fromCharCode ( code ) ; } if ( code == NUL ) { throw new NullCharError ( ) ; } throw new CodeError ( "Token: invalid char code " + code ) ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .
// ASCII "() // ASCII ,/ // ASCII :;<=>?@ // ASCII [\] // ASCII {}