MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / next_string

Function next_string

src/debug.cpp:1310–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1308}
1309
1310static size_t next_string (TCHAR **c, TCHAR *out, int max, int forceupper)
1311{
1312 TCHAR *p = out;
1313 int startmarker = 0;
1314
1315 if (**c == '\"') {
1316 startmarker = 1;
1317 (*c)++;
1318 }
1319 *p = 0;
1320 while (**c != 0) {
1321 if (**c == '\"' && startmarker) {
1322 (*c)++;
1323 ignore_ws(c);
1324 break;
1325 }
1326 if (**c == 32 && !startmarker) {
1327 ignore_ws (c);
1328 break;
1329 }
1330 *p = next_char2(c);
1331 if (forceupper) {
1332 *p = _totupper(*p);
1333 }
1334 *++p = 0;
1335 max--;
1336 if (max <= 1) {
1337 break;
1338 }
1339 }
1340 return _tcslen (out);
1341}
1342
1343static void converter(TCHAR **c)
1344{

Callers 5

heatmap_statsFunction · 0.85
process_breakpointFunction · 0.85
saveloadmemFunction · 0.85
disk_debugFunction · 0.85
m68k_modifyFunction · 0.85

Calls 2

ignore_wsFunction · 0.85
next_char2Function · 0.85

Tested by

no test coverage detected