]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/string.h
API: Introduced exceptions for common mistakes of the symbol mapper
[libucw.git] / ucw / string.h
index 8ec579c7d3c382c1a8ceb6d25b3204f4987fd07b..0c64ace57dca303d8f3e6e447fc09cec03b931b0 100644 (file)
 #ifndef _UCW_STRING_H
 #define _UCW_STRING_H
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define hex_to_mem ucw_hex_to_mem
+#define mem_to_hex ucw_mem_to_hex
+#define str_count_char ucw_str_count_char
+#define str_format_flags ucw_str_format_flags
+#define str_has_prefix ucw_str_has_prefix
+#define str_has_suffix ucw_str_has_suffix
+#define str_hier_prefix ucw_str_hier_prefix
+#define str_hier_suffix ucw_str_hier_suffix
+#define str_match_pattern ucw_str_match_pattern
+#define str_match_pattern_nocase ucw_str_match_pattern_nocase
+#define str_sepsplit ucw_str_sepsplit
+#define str_unesc ucw_str_unesc
+#define str_wordsplit ucw_str_wordsplit
+#endif
+
 /* string.c */
 
 #ifdef CONFIG_DARWIN
-uns strnlen(const char *str, uns n);
+uns strnlen(const char *str, uns n);   // NOAPI
 #endif
 
 /**
@@ -26,12 +42,6 @@ char *str_format_flags(char *dest, const char *fmt, uns flags);
 /** Counts occurrences of @chr in @str. **/
 uns str_count_char(const char *str, uns chr);
 
-/** Returns a non-zero value if @haystack starts with @needle. **/
-int str_starts_with(const char *haystack, const char *needle);
-
-/** Returns a non-zero value if @haystack ends with @needle. **/
-int str_ends_with(const char *haystack, const char *needle);
-
 /* str-esc.c */
 
 /**