lib/util Re-merge the string_sub() and all_string_sub() from source3
[ira/wip.git] / lib / util / util.h
index 45779912f3105f08c4bac7bbae818d5fc36cd934..8bbaa0e393ec1c2ce2110ca25eb9805f4fcef4f4 100644 (file)
@@ -284,6 +284,8 @@ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_
 **/
 _PUBLIC_ void string_sub(char *s,const char *pattern, const char *insert, size_t len);
 
+_PUBLIC_ void string_sub_once(char *s, const char *pattern,
+                             const char *insert, size_t len);
 
 _PUBLIC_ char *string_sub_talloc(TALLOC_CTX *mem_ctx, const char *s, 
                                const char *pattern, const char *insert);