Lines Matching refs:mTokenizer
721 mMap(map), mTokenizer(tokenizer), mFormat(format), mState(STATE_TOP) { in Parser()
728 while (!mTokenizer->isEof()) { in parse()
730 ALOGD("Parsing %s: '%s'.", mTokenizer->getLocation().string(), in parse()
731 mTokenizer->peekRemainderOfLine().string()); in parse()
734 mTokenizer->skipDelimiters(WHITESPACE); in parse()
736 if (!mTokenizer->isEol() && mTokenizer->peekChar() != '#') { in parse()
739 String8 keywordToken = mTokenizer->nextToken(WHITESPACE); in parse()
741 mTokenizer->skipDelimiters(WHITESPACE); in parse()
745 mTokenizer->skipDelimiters(WHITESPACE); in parse()
749 mTokenizer->skipDelimiters(WHITESPACE); in parse()
753 ALOGE("%s: Expected keyword, got '%s'.", mTokenizer->getLocation().string(), in parse()
767 mTokenizer->skipDelimiters(WHITESPACE); in parse()
768 if (!mTokenizer->isEol() && mTokenizer->peekChar() != '#') { in parse()
770 mTokenizer->getLocation().string(), in parse()
771 mTokenizer->peekRemainderOfLine().string()); in parse()
776 mTokenizer->nextLine(); in parse()
781 mTokenizer->getLocation().string()); in parse()
787 mTokenizer->getLocation().string()); in parse()
794 mTokenizer->getLocation().string()); in parse()
801 mTokenizer->getLocation().string()); in parse()
812 mTokenizer->getLocation().string()); in parseType()
817 String8 typeToken = mTokenizer->nextToken(WHITESPACE); in parseType()
831 ALOGE("%s: Expected keyboard type label, got '%s'.", mTokenizer->getLocation().string(), in parseType()
844 String8 keywordToken = mTokenizer->nextToken(WHITESPACE); in parseMap()
846 mTokenizer->skipDelimiters(WHITESPACE); in parseMap()
849 ALOGE("%s: Expected keyword after 'map', got '%s'.", mTokenizer->getLocation().string(), in parseMap()
855 String8 codeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
859 mTokenizer->skipDelimiters(WHITESPACE); in parseMapKey()
860 codeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
866 ALOGE("%s: Expected key %s number, got '%s'.", mTokenizer->getLocation().string(), in parseMapKey()
873 ALOGE("%s: Duplicate entry for key %s '%s'.", mTokenizer->getLocation().string(), in parseMapKey()
878 mTokenizer->skipDelimiters(WHITESPACE); in parseMapKey()
879 String8 keyCodeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
882 ALOGE("%s: Expected key code label, got '%s'.", mTokenizer->getLocation().string(), in parseMapKey()
896 String8 keyCodeToken = mTokenizer->nextToken(WHITESPACE); in parseKey()
899 ALOGE("%s: Expected key code label, got '%s'.", mTokenizer->getLocation().string(), in parseKey()
904 ALOGE("%s: Duplicate entry for key code '%s'.", mTokenizer->getLocation().string(), in parseKey()
909 mTokenizer->skipDelimiters(WHITESPACE); in parseKey()
910 String8 openBraceToken = mTokenizer->nextToken(WHITESPACE); in parseKey()
913 mTokenizer->getLocation().string(), openBraceToken.string()); in parseKey()
928 String8 token = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); in parseKeyProperty()
947 mTokenizer->getLocation().string(), token.string()); in parseKeyProperty()
953 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
954 if (!mTokenizer->isEol()) { in parseKeyProperty()
955 char ch = mTokenizer->nextChar(); in parseKeyProperty()
959 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
960 token = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); in parseKeyProperty()
966 mTokenizer->getLocation().string()); in parseKeyProperty()
971 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
979 char ch = mTokenizer->peekChar(); in parseKeyProperty()
985 mTokenizer->getLocation().string()); in parseKeyProperty()
990 mTokenizer->getLocation().string()); in parseKeyProperty()
995 mTokenizer->getLocation().string()); in parseKeyProperty()
1001 token = mTokenizer->nextToken(WHITESPACE); in parseKeyProperty()
1005 mTokenizer->getLocation().string()); in parseKeyProperty()
1010 mTokenizer->getLocation().string()); in parseKeyProperty()
1015 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1016 token = mTokenizer->nextToken(WHITESPACE); in parseKeyProperty()
1020 mTokenizer->getLocation().string(), in parseKeyProperty()
1026 mTokenizer->getLocation().string()); in parseKeyProperty()
1032 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1033 token = mTokenizer->nextToken(WHITESPACE); in parseKeyProperty()
1037 mTokenizer->getLocation().string(), in parseKeyProperty()
1043 mTokenizer->getLocation().string()); in parseKeyProperty()
1048 mTokenizer->getLocation().string()); in parseKeyProperty()
1056 mTokenizer->getLocation().string()); in parseKeyProperty()
1061 mTokenizer->skipDelimiters(WHITESPACE); in parseKeyProperty()
1062 } while (!mTokenizer->isEol() && mTokenizer->peekChar() != '#'); in parseKeyProperty()
1071 mTokenizer->getLocation().string()); in parseKeyProperty()
1082 mTokenizer->getLocation().string()); in parseKeyProperty()
1094 mTokenizer->getLocation().string()); in parseKeyProperty()
1164 mTokenizer->getLocation().string(), token.string()); in parseModifier()
1181 char ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1186 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1189 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1203 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1226 ch = mTokenizer->nextChar(); in parseCharacterLiteral()
1232 if (mTokenizer->nextToken(WHITESPACE).isEmpty()) { in parseCharacterLiteral()
1237 ALOGE("%s: Malformed character literal.", mTokenizer->getLocation().string()); in parseCharacterLiteral()