packaging

This commit is contained in:
udo
2022-02-11 02:35:06 +00:00
parent 6f6919f3f0
commit defc628204
7 changed files with 59 additions and 7 deletions
+7 -2
View File
@@ -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)
+1
View File
@@ -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);