Home
last modified time | relevance | path

Searched refs:postContext (Results 1 – 25 of 31) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Drbt_rule.cpp142 postContext = NULL; in TransliterationRule()
144 postContext = new StringMatcher(pattern, anteContextLength + keyLength, pattern.length(), in TransliterationRule()
147 if (postContext == 0) { in TransliterationRule()
168 postContext(NULL), in TransliterationRule()
188 if (other.postContext != NULL) { in TransliterationRule()
189 postContext = (StringMatcher*) other.postContext->clone(); in TransliterationRule()
198 delete postContext; in ~TransliterationRule()
244 UnicodeMatcher *m = (key != NULL) ? key : postContext; in matchesIndexValue()
422 if (postContext != NULL) { in matchAndReplace()
431 match = postContext->matches(text, oText, pos.contextLimit, incremental); in matchAndReplace()
[all …]
Dformat.cpp192 pattern.extract(start,stop-start,parseError.postContext,0); in syntaxError()
194 parseError.postContext[stop-start]= 0; in syntaxError()
Duspoof_build.cpp69 pe->postContext[0] = 0; in uspoof_openFromSource()
Drbt_rule.h82 StringMatcher *postContext; variable
Ddecimalformatpattern.cpp56 pattern.extract(start,stop-start,parseError.postContext,0); in syntaxError()
58 parseError.postContext[stop-start]= 0; in syntaxError()
149 parseError.preContext[0] = parseError.postContext[0] = (UChar)0; in applyPatternWithoutExpandAffix()
Drbt_set.cpp157 r.extract(0, len, parseError.postContext); in maskingError()
158 parseError.postContext[len] = 0; in maskingError()
Dcollationruleparser.cpp82 parseError->postContext[0] = 0; in parse()
857 rules->extract(ruleIndex, length, parseError->postContext); in setErrorContext()
858 parseError->postContext[length] = 0; in setErrorContext()
Ducol_sit.cpp445 parseError->postContext[0] = 0; in ucol_prepareShortStringOpen()
515 parseError->postContext[0] = 0; in ucol_openFromShortString()
Drbnf.cpp390 pe.postContext[0] = 0; in parse()
580 u_strncpy(pe.postContext, p, (int32_t)(limit-p)); in parseError()
581 pe.postContext[limit-p] = 0; in parseError()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliterationRule.java69 private StringMatcher postContext; field in TransliterationRule
215 postContext = null; in TransliterationRule()
217 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
262 UnicodeMatcher m = (key != null) ? key : postContext; in matchesIndexValue()
440 if (postContext != null) { in matchAndReplace()
449 match = postContext.matches(text, intRef, pos.contextLimit, incremental); in matchAndReplace()
502 (anteContext != null) || (postContext != null); in toRule()
522 Utility.appendToRule(rule, postContext, escapeUnprintable, quoteBuf); in toRule()
DTransliteratorParser.java722 …final String postContext = limit-pos <= 50 ? rule.substring(pos, limit) : rule.substring(pos, pos+… in parseSection()
724 + postContext).initCause(e); in parseSection()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTransliterationRule.java70 private StringMatcher postContext; field in TransliterationRule
216 postContext = null; in TransliterationRule()
218 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
263 UnicodeMatcher m = (key != null) ? key : postContext; in matchesIndexValue()
441 if (postContext != null) { in matchAndReplace()
450 match = postContext.matches(text, intRef, pos.contextLimit, incremental); in matchAndReplace()
503 (anteContext != null) || (postContext != null); in toRule()
523 Utility.appendToRule(rule, postContext, escapeUnprintable, quoteBuf); in toRule()
DStringPrepParseException.java155 buf.append(postContext); in toString()
182 private StringBuffer postContext = new StringBuffer(); field in StringPrepParseException
204 postContext.append(str,start,len); in setPostContext()
DTransliteratorParser.java723 …final String postContext = limit-pos <= 50 ? rule.substring(pos, limit) : rule.substring(pos, pos+… in parseSection()
725 + postContext).initCause(e); in parseSection()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DStringPrepParseException.java171 buf.append(postContext); in toString()
198 private StringBuffer postContext = new StringBuffer(); field in StringPrepParseException
220 postContext.append(str,start,len); in setPostContext()
/external/icu/icu4c/source/test/cintltst/
Dcallcoll.c1202 u_memset(parseError.postContext,0x0000,U_PARSE_CONTEXT_LEN); in TestInvalidRules()
1210 if(u_strcmp(parseError.postContext,postContextExp)!=0){ in TestInvalidRules()
1212 aescstrdup(parseError.postContext, -1)); in TestInvalidRules()
1224 char postContext[200]={0}; in TestJitterbug1098() local
1249 u_memset(parseError.postContext,0x0000,U_PARSE_CONTEXT_LEN); in TestJitterbug1098()
1258 u_UCharsToChars(parseError.postContext,postContext,20); in TestJitterbug1098()
1259 log_verbose("\n\tPre-Context: %s \n\tPost-Context:%s \n",preContext,postContext); in TestJitterbug1098()
/external/icu/icu4c/source/common/unicode/
Dparseerr.h90 UChar postContext[U_PARSE_CONTEXT_LEN]; member
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.cpp229 char postContext[CONTEXT_LEN+1]; in ucbuf_fillucbuf() local
262 memcpy(postContext,source,stop-start); in ucbuf_fillucbuf()
264 postContext[stop-start] = 0; in ucbuf_fillucbuf()
270 fprintf(stderr,"\tPost-context: %s\n", postContext); in ucbuf_fillucbuf()
/external/icu/icu4c/source/test/intltest/
Ditrbnfp.cpp139 …or line: %x offset: %x context: %s|%s", perr.line, perr.offset, perr.preContext, perr.postContext); in TestParse()
Dtranstst.cpp254 ", post-context " +prettify(parseError.postContext,TRUE) + in TestInstantiation()
2650 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestDevanagariLatinRT()
2698 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestTeluguLatinRT()
2758 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestSanskritLatinRT()
2827 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestCompoundLatinRT()
2968 err.append((UChar)124/*|*/).append(pe.postContext); in TestParseError()
2990 else if (UnicodeString("ab > y;") != UnicodeString(pe.postContext)) { in TestParseError()
3006 err.append((UChar)124/*|*/).append(pe.postContext); in TestOutputSet()
3025 err.append((UChar)124/*|*/).append(pe.postContext); in TestVariableRange()
3043 err.append((UChar)124/*|*/).append(pe.postContext); in TestInvalidPostContext()
[all …]
Dtrnserr.cpp160 } else if (parseError.postContext[0] == 0 || parseError.preContext[0] == 0) { in TestTransliteratorErrors()
Dtransapi.cpp299 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestTransliterate1()
426 if (parseError.postContext[0]) { in TestSimpleKeyboardTransliterator()
427 context += (UnicodeString)" | " + parseError.postContext; in TestSimpleKeyboardTransliterator()
Dtransrt.cpp576 + "\n\tpostContext : " + prettify(parseError.postContext)); in test2()
585 + "\n\tpostContext : " + prettify(parseError.postContext)); in test2()
/external/icu/icu4c/source/common/
Dusprep.cpp462 u_memcpy(parseError->postContext,rules+start,limit-start); in uprv_syntaxError()
465 parseError->postContext[limit-start]= 0; in uprv_syntaxError()
Dmessagepattern.cpp414 parseError->postContext[0]=0; in preParse()
1175 msg.extract(index, length, parseError->postContext); in setParseError()
1176 parseError->postContext[length]=0; in setParseError()

12