• Home
  • Raw
  • Download

Lines Matching refs:tokenValue

183 getToken(ParseState* state, struct UString **tokenValue, struct UString* comment, uint32_t *linenum…  in getToken()  argument
190 if (tokenValue != NULL) in getToken()
192 *tokenValue = &state->lookahead[state->lookaheadPosition].value; in getToken()
217 peekToken(ParseState* state, uint32_t lookaheadCount, struct UString **tokenValue, uint32_t *linenu… in peekToken() argument
232 if (tokenValue != NULL) in peekToken()
234 *tokenValue = &state->lookahead[i].value; in peekToken()
250 expect(ParseState* state, enum ETokenType expectedToken, struct UString **tokenValue, struct UStrin… in expect() argument
254 enum ETokenType token = getToken(state, tokenValue, comment, &line, status); in expect()
280 struct UString *tokenValue; in getInvariantString() local
283 expect(state, TOK_STRING, &tokenValue, comment, line, status); in getInvariantString()
290 if(!uprv_isInvariantUString(tokenValue->fChars, tokenValue->fLength)) { in getInvariantString()
296 result = static_cast<char *>(uprv_malloc(tokenValue->fLength+1)); in getInvariantString()
304 u_UCharsToChars(tokenValue->fChars, result, tokenValue->fLength+1); in getInvariantString()
305 stringLength = tokenValue->fLength; in getInvariantString()
313 struct UString *tokenValue; in parseUCARules() local
327 expect(state, TOK_STRING, &tokenValue, NULL, &line, status); in parseUCARules()
348 u_UCharsToChars(tokenValue->fChars, cs, tokenValue->fLength); in parseUCARules()
457 struct UString *tokenValue; in parseTransliterator() local
468 expect(state, TOK_STRING, &tokenValue, NULL, &line, status); in parseTransliterator()
489 u_UCharsToChars(tokenValue->fChars, cs, tokenValue->fLength); in parseTransliterator()
536 struct UString *tokenValue; in parseDependency() local
541 expect(state, TOK_STRING, &tokenValue, NULL, &line, status); in parseDependency()
562 u_UCharsToChars(tokenValue->fChars, cs, tokenValue->fLength); in parseDependency()
580 …result = string_open(state->bundle, tag, tokenValue->fChars, tokenValue->fLength, comment, status); in parseDependency()
582 … elem = string_open(state->bundle, NULL, tokenValue->fChars, tokenValue->fLength, comment, status); in parseDependency()
596 struct UString *tokenValue; in parseString() local
606 expect(state, TOK_STRING, &tokenValue, NULL, NULL, status); in parseString()
613 …result = string_open(state->bundle, tag, tokenValue->fChars, tokenValue->fLength, comment, status); in parseString()
631 struct UString *tokenValue; in parseAlias() local
634 expect(state, TOK_STRING, &tokenValue, NULL, NULL, status); in parseAlias()
645 … result = alias_open(state->bundle, tag, tokenValue->fChars, tokenValue->fLength, comment, status); in parseAlias()
818 struct UString *tokenValue; in addCollation() local
833 token = getToken(state, &tokenValue, &comment, &line, status); in addCollation()
857 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in addCollation()
1051 struct UString *tokenValue; in parseCollationElements() local
1072 token = getToken(state, &tokenValue, &comment, &line, status); in parseCollationElements()
1096 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in parseCollationElements()
1118 token = peekToken(state, 0, &tokenValue, &line, &comment, status); in parseCollationElements()
1123 token = getToken(state, &tokenValue, &comment, &line, status); in parseCollationElements()
1137 token = peekToken(state, 1, &tokenValue, &line, &comment, status); in parseCollationElements()
1138 … u_UCharsToChars(tokenValue->fChars, typeKeyword, u_strlen(tokenValue->fChars) + 1); in parseCollationElements()
1179 struct UString *tokenValue=NULL; in realParseTable() local
1194 token = getToken(state, &tokenValue, &comment, &line, status); in realParseTable()
1220 if(uprv_isInvariantUString(tokenValue->fChars, -1)) { in realParseTable()
1221 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in realParseTable()
1287 struct UString *tokenValue; in parseArray() local
1311 token = peekToken(state, 0, &tokenValue, NULL, &memberComments, status); in parseArray()
1334 getToken(state, &tokenValue, &memberComments, NULL, status); in parseArray()
1335 …member = string_open(state->bundle, NULL, tokenValue->fChars, tokenValue->fLength, &memberComments… in parseArray()
1802 struct UString *tokenValue; in parseResourceType() local
1807 expect(state, TOK_STRING, &tokenValue, &comment, &line, status); in parseResourceType()
1819 if (u_strcmp(tokenValue->fChars, gResourceTypes[result].nameUChars) == 0) { in parseResourceType()
1824 if (u_strcmp(tokenValue->fChars, k_type_int) == 0) { in parseResourceType()
1827 else if (u_strcmp(tokenValue->fChars, k_type_bin) == 0) { in parseResourceType()
1832 u_austrncpy(tokenBuffer, tokenValue->fChars, sizeof(tokenBuffer)); in parseResourceType()
1848 struct UString *tokenValue; in parseResource() local
1853 token = getToken(state, &tokenValue, NULL, &startline, status); in parseResource()
1876 expect(state, TOK_OPEN_BRACE, &tokenValue, NULL, &startline, status); in parseResource()
1975 struct UString *tokenValue; in parse() local
2001 expect(&state, TOK_STRING, &tokenValue, &comment, NULL, status); in parse()
2013 state.bundle->setLocale(tokenValue->fChars, *status); in parse()