Renamed string_pos back to string_find to make meaning more obvious

This commit is contained in:
phobos2077
2023-08-07 20:01:21 +02:00
parent 61f3a2ac13
commit 553c7cc195
7 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
#include "sfall.h"
#define is_in_string(str, sub) (string_pos(str, sub) != -1)
#define string_contains(str, sub) (string_find(str, sub) != -1)
#define string_starts_with(str, sub) (substr(str, 0, strlen(sub)) == sub)
#define string_format_array(fmt, arr) sprintf_array(fmt, arr)
// Replaces all occurances of substring in a string with another substring