Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/i18n/
Drbt_rule.cpp140 postContext = NULL; in TransliterationRule()
142 postContext = new StringMatcher(pattern, anteContextLength + keyLength, pattern.length(), in TransliterationRule()
145 if (postContext == 0) { in TransliterationRule()
166 postContext(NULL), in TransliterationRule()
186 if (other.postContext != NULL) { in TransliterationRule()
187 postContext = (StringMatcher*) other.postContext->clone(); in TransliterationRule()
196 delete postContext; in ~TransliterationRule()
242 UnicodeMatcher *m = (key != NULL) ? key : postContext; in matchesIndexValue()
420 if (postContext != NULL) { in matchAndReplace()
429 match = postContext->matches(text, oText, pos.contextLimit, incremental); in matchAndReplace()
[all …]
Dformat.cpp190 pattern.extract(start,stop-start,parseError.postContext,0); in syntaxError()
192 parseError.postContext[stop-start]= 0; in syntaxError()
Duspoof_build.cpp66 pe->postContext[0] = 0; in uspoof_openFromSource()
Drbt_rule.h80 StringMatcher *postContext; variable
Ddecimalformatpattern.cpp69 pattern.extract(start,stop-start,parseError.postContext,0); in syntaxError()
71 parseError.postContext[stop-start]= 0; in syntaxError()
162 parseError.preContext[0] = parseError.postContext[0] = (UChar)0; in applyPatternWithoutExpandAffix()
Drbt_set.cpp155 r.extract(0, len, parseError.postContext); in maskingError()
156 parseError.postContext[len] = 0; in maskingError()
Dcollationruleparser.cpp80 parseError->postContext[0] = 0; in parse()
855 rules->extract(ruleIndex, length, parseError->postContext); in setErrorContext()
856 parseError->postContext[length] = 0; in setErrorContext()
Ducol_sit.cpp443 parseError->postContext[0] = 0; in ucol_prepareShortStringOpen()
506 parseError->postContext[0] = 0; in ucol_openFromShortString()
Drbnf.cpp366 pe.postContext[0] = 0; in parse()
556 u_strncpy(pe.postContext, p, (int32_t)(limit-p)); in parseError()
557 pe.postContext[limit-p] = 0; in parseError()
Drbt_pars.cpp1492 rule.extract(start,stop-start,parseError.postContext); in syntaxError()
1494 parseError.postContext[stop-start]= 0; in syntaxError()
Dregexcmp.cpp3909 uprv_memset(fParseErr->postContext, 0, sizeof(fParseErr->postContext)); in error()
3911 …at->fPattern, fScanIndex, fScanIndex+U_PARSE_CONTEXT_LEN-1, fParseErr->postContext, U_PARSE_CONTEX… in error()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliterationRule.java67 private StringMatcher postContext; field in TransliterationRule
213 postContext = null; in TransliterationRule()
215 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
260 UnicodeMatcher m = (key != null) ? key : postContext; in matchesIndexValue()
438 if (postContext != null) { in matchAndReplace()
447 match = postContext.matches(text, intRef, pos.contextLimit, incremental); in matchAndReplace()
500 (anteContext != null) || (postContext != null); in toRule()
520 Utility.appendToRule(rule, postContext, escapeUnprintable, quoteBuf); in toRule()
DTransliteratorParser.java715 …final String postContext = limit-pos <= 50 ? rule.substring(pos, limit) : rule.substring(pos, pos+… in parseSection()
718 + postContext).initCause(e); in parseSection()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DStringPrepParseException.java166 buf.append(postContext); in toString()
193 private StringBuffer postContext = new StringBuffer(); field in StringPrepParseException
215 postContext.append(str,start,len); in setPostContext()
/external/icu/icu4c/source/common/unicode/
Dparseerr.h88 UChar postContext[U_PARSE_CONTEXT_LEN]; member
/external/icu/icu4c/source/test/cintltst/
Dcallcoll.c1200 u_memset(parseError.postContext,0x0000,U_PARSE_CONTEXT_LEN); in TestInvalidRules()
1208 if(u_strcmp(parseError.postContext,postContextExp)!=0){ in TestInvalidRules()
1210 aescstrdup(parseError.postContext, -1)); in TestInvalidRules()
1222 char postContext[200]={0}; in TestJitterbug1098() local
1247 u_memset(parseError.postContext,0x0000,U_PARSE_CONTEXT_LEN); in TestJitterbug1098()
1256 u_UCharsToChars(parseError.postContext,postContext,20); in TestJitterbug1098()
1257 log_verbose("\n\tPre-Context: %s \n\tPost-Context:%s \n",preContext,postContext); in TestJitterbug1098()
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.c227 char postContext[CONTEXT_LEN+1]; in ucbuf_fillucbuf() local
260 memcpy(postContext,source,stop-start); in ucbuf_fillucbuf()
262 postContext[stop-start] = 0; in ucbuf_fillucbuf()
268 fprintf(stderr,"\tPost-context: %s\n", postContext); in ucbuf_fillucbuf()
/external/icu/icu4c/source/test/intltest/
Ditrbnfp.cpp137 …or line: %x offset: %x context: %s|%s", perr.line, perr.offset, perr.preContext, perr.postContext); in TestParse()
Dtranstst.cpp251 ", post-context " +prettify(parseError.postContext,TRUE) + in TestInstantiation()
2647 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestDevanagariLatinRT()
2695 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestTeluguLatinRT()
2755 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestSanskritLatinRT()
2824 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestCompoundLatinRT()
2965 err.append((UChar)124/*|*/).append(pe.postContext); in TestParseError()
2987 else if (UnicodeString("ab > y;") != UnicodeString(pe.postContext)) { in TestParseError()
3003 err.append((UChar)124/*|*/).append(pe.postContext); in TestOutputSet()
3022 err.append((UChar)124/*|*/).append(pe.postContext); in TestVariableRange()
3040 err.append((UChar)124/*|*/).append(pe.postContext); in TestInvalidPostContext()
[all …]
Dtrnserr.cpp158 } else if (parseError.postContext[0] == 0 || parseError.preContext[0] == 0) { in TestTransliteratorErrors()
Dtransapi.cpp296 …text: " + prettify(parseError.preContext) + " PostContext: " + prettify( parseError.postContext) ); in TestTransliterate1()
423 if (parseError.postContext[0]) { in TestSimpleKeyboardTransliterator()
424 context += (UnicodeString)" | " + parseError.postContext; in TestSimpleKeyboardTransliterator()
Dtransrt.cpp573 + "\n\tpostContext : " + prettify(parseError.postContext)); in test2()
582 + "\n\tpostContext : " + prettify(parseError.postContext)); in test2()
/external/icu/icu4c/source/common/
Dusprep.cpp460 u_memcpy(parseError->postContext,rules+start,limit-start); in uprv_syntaxError()
463 parseError->postContext[limit-start]= 0; in uprv_syntaxError()
Dmessagepattern.cpp412 parseError->postContext[0]=0; in preParse()
1173 msg.extract(index, length, parseError->postContext); in setParseError()
1174 parseError->postContext[length]=0; in setParseError()
Drbbiscan.cpp582 fRB->fParseError->postContext[0] = 0; in error()

12