Lines Matching refs:compString
51 bool TParseContext::parseVectorFields(const TString& compString, int vecSize, TVectorFields& fields… in parseVectorFields() argument
53 fields.num = (int) compString.size(); in parseVectorFields()
55 error(line, "illegal vector field selection", compString.c_str(), ""); in parseVectorFields()
66 switch (compString[i]) { in parseVectorFields()
117 error(line, "illegal vector field selection", compString.c_str(), ""); in parseVectorFields()
124 error(line, "vector field selection out of range", compString.c_str(), ""); in parseVectorFields()
130 … error(line, "illegal - vector component fields not from the same set", compString.c_str(), ""); in parseVectorFields()
144 bool TParseContext::parseMatrixFields(const TString& compString, int matSize, TMatrixFields& fields… in parseMatrixFields() argument
151 if (compString.size() != 2) { in parseMatrixFields()
152 error(line, "illegal length of matrix field selection", compString.c_str(), ""); in parseMatrixFields()
156 if (compString[0] == '_') { in parseMatrixFields()
157 if (compString[1] < '0' || compString[1] > '3') { in parseMatrixFields()
158 error(line, "illegal matrix field selection", compString.c_str(), ""); in parseMatrixFields()
162 fields.col = compString[1] - '0'; in parseMatrixFields()
163 } else if (compString[1] == '_') { in parseMatrixFields()
164 if (compString[0] < '0' || compString[0] > '3') { in parseMatrixFields()
165 error(line, "illegal matrix field selection", compString.c_str(), ""); in parseMatrixFields()
169 fields.row = compString[0] - '0'; in parseMatrixFields()
171 if (compString[0] < '0' || compString[0] > '3' || in parseMatrixFields()
172 compString[1] < '0' || compString[1] > '3') { in parseMatrixFields()
173 error(line, "illegal matrix field selection", compString.c_str(), ""); in parseMatrixFields()
176 fields.row = compString[0] - '0'; in parseMatrixFields()
177 fields.col = compString[1] - '0'; in parseMatrixFields()
181 error(line, "matrix field selection out of range", compString.c_str(), ""); in parseMatrixFields()