src/string.c

changeset 693
494d9b20b99e
parent 657
3eeadf666d6b
child 697
ebdce4bf262b
     1.1 --- a/src/string.c	Fri Apr 21 20:17:09 2023 +0200
     1.2 +++ b/src/string.c	Fri Apr 21 20:28:55 2023 +0200
     1.3 @@ -72,7 +72,7 @@
     1.4  }
     1.5  
     1.6  void cx_strfree_a(
     1.7 -        CxAllocator *alloc,
     1.8 +        CxAllocator const *alloc,
     1.9          cxmutstr *str
    1.10  ) {
    1.11      cxFree(alloc, str->ptr);
    1.12 @@ -99,7 +99,7 @@
    1.13  }
    1.14  
    1.15  cxmutstr cx_strcat_a(
    1.16 -        CxAllocator *alloc,
    1.17 +        CxAllocator const *alloc,
    1.18          size_t count,
    1.19          ...
    1.20  ) {
    1.21 @@ -369,7 +369,7 @@
    1.22  }
    1.23  
    1.24  size_t cx_strsplit_a(
    1.25 -        CxAllocator *allocator,
    1.26 +        CxAllocator const *allocator,
    1.27          cxstring string,
    1.28          cxstring delim,
    1.29          size_t limit,
    1.30 @@ -411,7 +411,7 @@
    1.31  }
    1.32  
    1.33  size_t cx_strsplit_ma(
    1.34 -        CxAllocator *allocator,
    1.35 +        CxAllocator const *allocator,
    1.36          cxmutstr string,
    1.37          cxstring delim,
    1.38          size_t limit,
    1.39 @@ -470,7 +470,7 @@
    1.40  }
    1.41  
    1.42  cxmutstr cx_strdup_a(
    1.43 -        CxAllocator *allocator,
    1.44 +        CxAllocator const *allocator,
    1.45          cxstring string
    1.46  ) {
    1.47      cxmutstr result = {
    1.48 @@ -579,7 +579,7 @@
    1.49  }
    1.50  
    1.51  cxmutstr cx_strreplacen_a(
    1.52 -        CxAllocator *allocator,
    1.53 +        CxAllocator const *allocator,
    1.54          cxstring str,
    1.55          cxstring pattern,
    1.56          cxstring replacement,

mercurial