Home » Developing U++ » UppHub » Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
Re: Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz) [message #24621 is a reply to message #24589] |
Mon, 25 January 2010 19:05   |
Sc0rch
Messages: 99 Registered: February 2008 Location: Russia, Rubtsovsk
|
Member |

|
|
Sc0rch wrote on Mon, 25 January 2010 16:03 | hmm, bug with ','
|
Not only with ',' found. Fixed.
Quick fix:
String GetText()
{
if (Text.GetCount() == 1 && Text[0] == '\"')
return "";
else if (Text.GetCount())
{
String t = Text;
if (Text[0] == '\"' && Text[Text.GetCount() - 1] == '\"')
t = Text.Mid(1, Text.GetCount()-2);
if (t.Find("\\\"") >= 0) ::ReplaceString(t, "\\\"", "\"");
if (t.Find("\\[" ) >= 0) ::ReplaceString(t, "\\[", "[");
if (t.Find("\\]" ) >= 0) ::ReplaceString(t, "\\]", "]");
if (t.Find("\\=" ) >= 0) ::ReplaceString(t, "\\=", "=");
if (t.Find("\\," ) >= 0) ::ReplaceString(t, "\\,", ",");
if (t.Find("\\\\") >= 0) ::ReplaceString(t, "\\\\", "\\");
return t;
}
return Text;
}
New version of IniParser:
[Updated on: Mon, 25 January 2010 19:09] Report message to a moderator
|
|
|
 |
|
Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
By: Sc0rch on Mon, 18 January 2010 10:11
|
 |
|
Re: Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
By: Sc0rch on Thu, 21 January 2010 18:55
|
 |
|
Re: Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
By: Sc0rch on Mon, 25 January 2010 11:03
|
 |
|
Re: Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
By: Sc0rch on Mon, 25 January 2010 19:05
|
 |
|
Re: Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
By: vicxtor on Sun, 05 January 2014 12:28
|
Goto Forum:
Current Time: Tue Apr 22 17:41:38 CEST 2025
Total time taken to generate the page: 0.02419 seconds
|