packages/java-parser/scripts/unicode.js
function pushInUnicode(cat, elt) {
  if (!unicode.hasOwnProperty(cat)) {
    unicode[cat] = {
      unicode: [],
      ranges: []
    };
  }

  if (Array.isArray(elt)) {
    unicode[cat].ranges.push(elt);
  } else {
    unicode[cat].unicode.push(elt);
  }
}
function pushInUnicode(cat, elt) {
  if (!unicode.hasOwnProperty(cat)) {
    unicode[cat] = {
      unicode: [],
      ranges: []
    };
  }

  if (Array.isArray(elt)) {
    unicode[cat].ranges.push(elt);
  } else {
    unicode[cat].unicode.push(elt);
  }
}
function pushInUnicode ( cat , elt ) { if ( ! unicode . hasOwnProperty ( cat ) ) { unicode [ cat ] = { unicode : [ ] , ranges : [ ] } ; } if ( Array . isArray ( elt ) ) { unicode [ cat ] . ranges . push ( elt ) ; } else { unicode [ cat ] . unicode . push ( elt ) ; } }
Function that pushes in an object an attribute to store the characters
Function that pushes in an object an attribute to store the characters