Home | History | Annotate | Download | only in ctestfw

Lines Matching refs:field

26     7. Define the field names, in order.
27 " static const Field names_UShoeSize[] = {
41 10. Find the function _udbg_enumFields and add the field macro:
49 struct Field {
61 * Define another field name. Used in an array of Field s
64 * @see Field
78 static const Field names_UCalendarDateFields[] =
107 static const Field names_UCalendarMonths[] =
128 static const Field names_UDateFormatStyle[] =
148 static const Field names_UAcceptResult[] =
159 static const Field names_UColAttributeValue[] = {
182 static const Field names_UDebugEnumType[] =
229 static const Field* _udbg_enumFields(UDebugEnumType type) {
257 const char * udbg_enumName(UDebugEnumType type, int32_t field) {
258 if(field<0 ||
259 field>=_udbg_enumCount(type,FALSE)) { // also will catch unsupported items
262 const Field *fields = _udbg_enumFields(type);
266 return fields[field].str + fields[field].prefix;
271 int32_t udbg_enumArrayValue(UDebugEnumType type, int32_t field) {
272 if(field<0 ||
273 field>=_udbg_enumCount(type,FALSE)) { // also will catch unsupported items
276 const Field *fields = _udbg_enumFields(type);
280 return fields[field].num;
289 const Field *fields = _udbg_enumFields(type);
290 for(int32_t field = 0;field<_udbg_enumCount(type, FALSE);field++) {
291 if(!strcmp(value, fields[field].str + fields[field].prefix)) {
292 return fields[field].num;
296 for(int32_t field = 0;field<_udbg_enumCount(type, FALSE);field++) {
297 if(!strcmp(value, fields[field].str)) {
298 return fields[field].num;