packaging
This commit is contained in:
@@ -150,7 +150,7 @@ StringMap split_kv(String s, char separator, bool trim_whitespace)
|
||||
u8 mode = 0;
|
||||
k = "";
|
||||
v = "";
|
||||
for(auto c : s)
|
||||
if(s[0] != '#') for(auto c : s)
|
||||
{
|
||||
if(mode == 0)
|
||||
{
|
||||
@@ -309,7 +309,12 @@ String html_escape(f64 a)
|
||||
|
||||
u64 int_val(String s, u32 base)
|
||||
{
|
||||
return(strtoll(s.c_str(), 0, base));
|
||||
return(strtol(s.c_str(), 0, base));
|
||||
}
|
||||
|
||||
f64 float_val(String s)
|
||||
{
|
||||
return(strtod(s.c_str(), 0));
|
||||
}
|
||||
|
||||
String nibble(String& haystack, String delim)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
u8 char_to_u8(char input);
|
||||
u8 hex_to_u8(String src);
|
||||
u64 int_val(String s, u32 base = 10);
|
||||
f64 float_val(String s);
|
||||
String to_lower(String s);
|
||||
String to_upper(String s);
|
||||
String replace(String s, String search, String replace_with);
|
||||
|
||||
Reference in New Issue
Block a user