private static int lteralNumericPatternMatch(byte[] source, int sourcePos, int sourceMask, short numType) { ////////////////////////////////////////////////////////////// //This is for supporting %i as an actual value to match that pattern rather than a number sourcePos++; final int typeMask = TrieParser.buildNumberBits(source[sourceMask & sourcePos]); sourcePos++; return ((typeMask&numType)==typeMask) ? sourcePos : -1; }
private static int lteralNumericPatternMatch(byte[] source, int sourcePos, int sourceMask, short numType) { ////////////////////////////////////////////////////////////// //This is for supporting %i as an actual value to match that pattern rather than a number sourcePos++; final int typeMask = TrieParser.buildNumberBits(source[sourceMask & sourcePos]); sourcePos++; return ((typeMask&numType)==typeMask) ? sourcePos : -1; }
private static int lteralNumericPatternMatch(byte[] source, int sourcePos, int sourceMask, short numType) { ////////////////////////////////////////////////////////////// //This is for supporting %i as an actual value to match that pattern rather than a number sourcePos++; final int typeMask = TrieParser.buildNumberBits(source[sourceMask & sourcePos]); sourcePos++; return ((typeMask&numType)==typeMask) ? sourcePos : -1; }
private int writeNumericExtract(int pos, int type) { int neededLen = pos+2; if (neededLen>data.length) { growDataLen(neededLen); } data[pos++] = TYPE_VALUE_NUMERIC; data[pos++] = buildNumberBits((byte)type); extractions[activeExtractionCount++] = (byte)type; maxExtractedFields = Math.max(maxExtractedFields, activeExtractionCount); return pos; }
private int writeNumericExtract(int pos, int type) { int neededLen = pos+2; if (neededLen>data.length) { growDataLen(neededLen); } data[pos++] = TYPE_VALUE_NUMERIC; data[pos++] = buildNumberBits((byte)type); extractions[activeExtractionCount++] = (byte)type; maxExtractedFields = Math.max(maxExtractedFields, activeExtractionCount); return pos; }
private int writeNumericExtract(int pos, int type) { int neededLen = pos+2; if (neededLen>data.length) { growDataLen(neededLen); } data[pos++] = TYPE_VALUE_NUMERIC; data[pos++] = buildNumberBits((byte)type); extractions[activeExtractionCount++] = (byte)type; maxExtractedFields = Math.max(maxExtractedFields, activeExtractionCount); return pos; }