mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
- fix stringToVector if the string ends in a separator. issue #328
This commit is contained in:
parent
d5bfdedb19
commit
4be2d6efda
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.4 MiB After Width: | Height: | Size: 4.4 MiB |
@ -105,11 +105,6 @@ vector<string> stringToVector(const string &text, char sep)
|
||||
{
|
||||
vector<string> v;
|
||||
if (text.empty()) return v;
|
||||
u32 count = 1;
|
||||
for (u32 i = 0; i < text.size(); ++i)
|
||||
if (text[i] == sep)
|
||||
++count;
|
||||
v.reserve(count);
|
||||
string::size_type off = 0;
|
||||
string::size_type i = 0;
|
||||
do
|
||||
@ -131,11 +126,6 @@ vector<wstringEx> stringToVector(const wstringEx &text, char sep)
|
||||
{
|
||||
vector<wstringEx> v;
|
||||
if (text.empty()) return v;
|
||||
u32 count = 1;
|
||||
for (u32 i = 0; i < text.size(); ++i)
|
||||
if (text[i] == sep)
|
||||
++count;
|
||||
v.reserve(count);
|
||||
wstringEx::size_type off = 0;
|
||||
wstringEx::size_type i = 0;
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user