Lines Matching refs:str
12 const char *str; member
18 {.str = "10", .base = 10, .value = 10},
19 {.str = "1", .base = 10, .value = 1},
20 {.str = "002", .base = 10, .value = 2},
21 {.str = "-10", .base = 10, .value = -10},
22 {.str = "-1", .base = 10, .value = -1},
23 {.str = "-002", .base = 10, .value = -2},
24 {.str = "30000000", .base = 10, .value = 30000000},
25 {.str = "-30000000", .base = 10, .value = -30000000},
26 {.str = "00", .base = 16, .value = 0},
27 {.str = "20", .base = 16, .value = 32},
28 {.str = "42", .base = 16, .value = 66},
29 {.str = "122", .base = 16, .value = 290},
30 {.str = "0122", .base = 16, .value = 290},
38 zassert_ok(gnss_parse_atoi(atoi_samples[i].str, atoi_samples[i].base, &value), in ZTEST()
52 const char *str; member
57 {.str = "10", .value = 10000000000},
58 {.str = "1", .value = 1000000000},
59 {.str = "002", .value = 2000000000},
60 {.str = "-10", .value = -10000000000},
61 {.str = "-1", .value = -1000000000},
62 {.str = "-002", .value = -2000000000},
63 {.str = "30000000", .value = 30000000000000000},
64 {.str = "-30000000", .value = -30000000000000000},
65 {.str = "0.10", .value = 100000000},
66 {.str = "-0.10", .value = -100000000},
67 {.str = "1", .value = 1000000000},
68 {.str = "002.000", .value = 2000000000},
69 {.str = "-002.000", .value = -2000000000},
70 {.str = "0.989812343", .value = 989812343},
71 {.str = "-0.989812343", .value = -989812343},
72 {.str = "0.112211", .value = 112211000},
73 {.str = "-0.112211", .value = -112211000},
74 {.str = "000000000.112211000000000000", .value = 112211000},
75 {.str = "-000000000.11221100000000000", .value = -112211000},
83 zassert_ok(gnss_parse_dec_to_nano(dec_to_nano_samples[i].str, &value), in ZTEST()