mirror of
https://github.com/holub/mame
synced 2025-06-04 11:56:28 +03:00
That's what trimspace is for. :)
This commit is contained in:
parent
590f02fe0e
commit
5e020e0281
@ -317,10 +317,7 @@ void legacy_cpu_device::device_start()
|
|||||||
int colon = tempstr.chr(0, ':');
|
int colon = tempstr.chr(0, ':');
|
||||||
int length = tempstr.len() - colon - 1;
|
int length = tempstr.len() - colon - 1;
|
||||||
|
|
||||||
while (colon>0 && isspace(tempstr[colon-1]))
|
tempstr.substr(0, colon).trimspace();
|
||||||
colon--;
|
|
||||||
|
|
||||||
tempstr.substr(0, colon);
|
|
||||||
|
|
||||||
astring formatstr;
|
astring formatstr;
|
||||||
formatstr.printf("%%%ds", length);
|
formatstr.printf("%%%ds", length);
|
||||||
|
Loading…
Reference in New Issue
Block a user