/libcore/json/src/test/java/org/json/ |
SelfUseTest.java | 71 @Override public String optString(String key, String defaultValue) { 73 return super.optString(key, defaultValue); 102 @Override public String optString(int index, String fallback) { 104 return super.optString(index, fallback); 153 object.optString("foo"); 200 array.optString(3);
|
JSONArrayTest.java | 98 assertEquals("true", array.optString(2)); 99 assertEquals("false", array.optString(3, "x")); 169 assertEquals("null", array.optString(0)); 170 assertEquals("", array.optString(1)); 171 assertEquals("", array.optString(2)); 172 assertEquals("", array.optString(3)); 264 assertEquals("5.5", array.optString(1)); 265 assertEquals("9223372036854775806", array.optString(2, null)); 266 assertEquals("null", array.optString(3, "-1")); 518 assertEquals("", array.optString(3)) [all...] |
JSONObjectTest.java | 100 assertEquals("", object.optString("foo")); // empty string is default! 101 assertEquals("bar", object.optString("foo", "bar")); 415 assertEquals("5.5", object.optString("bar")); 416 assertEquals("true", object.optString("foo", "x")); 843 assertEquals("", object.optString(null)); 848 assertEquals("baz", object.optString(null, "baz")); [all...] |
/external/bison/lib/ |
getopt.c | 236 _getopt_initialize (int argc, char **argv, const char *optstring, 251 if (optstring[0] == '-') 254 ++optstring; 256 else if (optstring[0] == '+') 259 ++optstring; 296 return optstring; 301 given in OPTSTRING. 318 OPTSTRING is a string containing the legitimate option characters. 319 If an option character is seen that is not listed in OPTSTRING, 323 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
/external/grub/lib/ |
getopt.c | 396 _getopt_initialize (argc, argv, optstring) 399 const char *optstring; 413 if (optstring[0] == '-') 416 ++optstring; 418 else if (optstring[0] == '+') 421 ++optstring; 458 return optstring; 463 given in OPTSTRING. 480 OPTSTRING is a string containing the legitimate option characters. 481 If an option character is seen that is not listed in OPTSTRING, [all...] |
/ndk/sources/host-tools/sed-4.2.1/lib/ |
getopt.c | 231 _getopt_initialize (int argc, char **argv, const char *optstring, 246 if (optstring[0] == '-') 249 ++optstring; 251 else if (optstring[0] == '+') 254 ++optstring; 291 return optstring; 296 given in OPTSTRING. 313 OPTSTRING is a string containing the legitimate option characters. 314 If an option character is seen that is not listed in OPTSTRING, 318 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
/external/srtp/test/ |
getopt_s.c | 77 const char *optstring) { 93 switch(getopt_check_character(string[1], optstring)) {
|
/ndk/sources/host-tools/make-3.81/ |
getopt.c | 386 _getopt_initialize (int argc, char *const *argv, const char *optstring) 400 if (optstring[0] == '-') 403 ++optstring; 405 else if (optstring[0] == '+') 408 ++optstring; 445 return optstring; 450 given in OPTSTRING. 467 OPTSTRING is a string containing the legitimate option characters. 468 If an option character is seen that is not listed in OPTSTRING, 472 If a char in OPTSTRING is followed by a colon, that means it wants an arg [all...] |
/external/e2fsprogs/misc/ |
uuidgen.c | 19 extern int getopt(int argc, char * const argv[], const char *optstring);
|
blkid.c | 28 extern int getopt(int argc, char * const argv[], const char *optstring);
|
uuidd.c | 31 extern int getopt(int argc, char * const argv[], const char *optstring);
|
/external/srtp/include/ |
getopt_s.h | 54 getopt_s(int argc, char * const argv[], const char *optstring);
|
/external/grub/util/ |
mbchk.c | 28 static char *optstring = "hvq"; variable 191 c = getopt_long (argc, argv, optstring, longopts, 0);
|
/external/oprofile/libpopt/ |
popt.c | 735 char * localOptString, * optString; 766 localOptString = optString = 769 if (optString[0] == '\0') 772 if (optString[1] == '-' && !optString[2]) { 779 optString++; 780 if (*optString == '-') 781 singleDash = 0, optString++; 786 if (handleAlias(con, optString, '\0', NULL)) 789 if (handleExec(con, optString, '\0') [all...] |
/external/grub/grub/ |
main.c | 68 #define OPTSTRING "" 151 c = getopt_long (argc, argv, OPTSTRING, longopts, 0);
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
common.c | 204 int getopt(int argc, char *const argv[], const char *optstring) 228 cp = os_strchr(optstring, optopt);
|
common.h | 342 int getopt(int argc, char *const argv[], const char *optstring);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_6/ |
shell.js | 370 var optString = options(); 371 if (optString) 373 var optList = optString.split(',');
|
/system/core/sh/ |
options.c | 383 error("usage: getopts optstring var [arg]"); 501 nextopt(const char *optstring) 516 for (q = optstring ; *q != c ; ) {
|
/external/wpa_supplicant_8/src/utils/ |
common.c | 258 int getopt(int argc, char *const argv[], const char *optstring) 282 cp = os_strchr(optstring, optopt);
|
/external/wpa_supplicant/ |
common.c | 500 int getopt(int argc, char *const argv[], const char *optstring) 524 cp = os_strchr(optstring, optopt);
|
common.h | 457 int getopt(int argc, char *const argv[], const char *optstring);
|
/libcore/json/src/main/java/org/json/ |
JSONArray.java | 433 public String optString(int index) { 434 return optString(index, ""); 441 public String optString(int index, String fallback) {
|
JSONObject.java | 522 public String optString(String name) { 523 return optString(name, ""); 530 public String optString(String name, String fallback) {
|
/external/netperf/ |
netlib.h | 408 int getopt(int argc, char **argv, char *optstring);
|