Sample: cleaning up Inheritance
[io/quag.git] / libs / basekit / source / UArray_string.h
blob2ab26546aef126232e88fad1ad3257cd54ad1fea
1 /*
2 copyright: Steve Dekorte, 2006. All rights reserved.
3 license: See _BSDLicense.txt.
4 */
6 /*
7 copyright: Steve Dekorte, 2006. All rights reserved.
8 license: See _BSDLicense.txt.
9 */
11 #include <string.h>
12 #include <stdarg.h>
13 #include <stdio.h>
14 #include <stddef.h>
16 BASEKIT_API void UArray_append_(UArray *self, const UArray *other);
17 BASEKIT_API void UArray_appendCString_(UArray *self, const char *s);
18 BASEKIT_API void UArray_prepend_(UArray *self, const UArray *other);
20 BASEKIT_API int UArray_equalsAnyCase_(const UArray *self, const UArray *other);
21 BASEKIT_API void UArray_replace_with_(UArray *self, const UArray *a1, const UArray *a2);
22 BASEKIT_API void UArray_replaceAnyCase_with_(UArray *self, const UArray *a1, const UArray *a2);
23 BASEKIT_API void UArray_replaceCString_withCString_(UArray *self, const char *s1, const char *s2);
24 BASEKIT_API void UArray_remove_(UArray *self, const UArray *a1);
25 BASEKIT_API void UArray_removeAnyCase_(UArray *self, const UArray *a1);
27 // clipping
29 BASEKIT_API int UArray_clipBefore_(UArray *self, const UArray *other);
30 BASEKIT_API int UArray_clipBeforeEndOf_(UArray *self, const UArray *other);
31 BASEKIT_API int UArray_clipAfter_(UArray *self, const UArray *other);
32 BASEKIT_API int UArray_clipAfterStartOf_(UArray *self, const UArray *other);
34 // strip
36 BASEKIT_API void UArray_lstrip_(UArray *self, const UArray *other);
37 BASEKIT_API void UArray_rstrip_(UArray *self, const UArray *other);
38 BASEKIT_API void UArray_strip_(UArray *self, const UArray *other);
40 // swap
42 BASEKIT_API void UArray_swapIndex_withIndex_(UArray *self, size_t i, size_t j);
44 // reverse
46 BASEKIT_API void UArray_reverse(UArray *self);
48 //BASEKIT_API size_t UArray_matchingPrefixSizeWith_(const UArray *self, const UArray *other);
50 // split
52 BASEKIT_API PtrUArray *UArray_split_(const UArray *self, const PtrUArray *delims);
53 BASEKIT_API size_t UArray_splitCount_(const UArray *self, const PtrUArray *delims);
55 // find
57 BASEKIT_API int UArray_beginsWith_(UArray *self, const UArray *other);
58 BASEKIT_API int UArray_endsWith_(UArray *self, const UArray *other);
60 // escape and quote
62 BASEKIT_API void UArray_swapWith_(UArray *self, UArray *other);
64 BASEKIT_API void UArray_escape(UArray *self);
65 BASEKIT_API void UArray_unescape(UArray *self);
67 BASEKIT_API void UArray_quote(UArray *self);
68 BASEKIT_API void UArray_unquote(UArray *self);
70 BASEKIT_API void UArray_translate(UArray *self, UArray *fromChars, UArray *toChars);
71 BASEKIT_API size_t UArray_count_(const UArray *self, const UArray *other);