1 /*
2 	copyright: Steve Dekorte, 2006. All rights reserved.
3 	license: See _BSDLicense.txt.
4 */
5 
6 /*
7 	copyright: Steve Dekorte, 2006. All rights reserved.
8 	license: See _BSDLicense.txt.
9 */
10 
11 #include <string.h>
12 #include <stdarg.h>
13 #include <stdio.h>
14 #include <stddef.h>
15 
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);
19 
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);
26 
27 // clipping
28 
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);
33 
34 // strip
35 
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);
39 
40 // swap
41 
42 BASEKIT_API void UArray_swapIndex_withIndex_(UArray *self, size_t i, size_t j);
43 
44 // reverse
45 
46 BASEKIT_API void UArray_reverse(UArray *self);
47 
48 //BASEKIT_API size_t UArray_matchingPrefixSizeWith_(const UArray *self, const UArray *other);
49 
50 // split
51 
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);
54 
55 // find
56 
57 BASEKIT_API int UArray_beginsWith_(UArray *self, const UArray *other);
58 BASEKIT_API int UArray_endsWith_(UArray *self, const UArray *other);
59 
60 // escape and quote
61 
62 BASEKIT_API void UArray_swapWith_(UArray *self, UArray *other);
63 
64 BASEKIT_API void UArray_escape(UArray *self);
65 BASEKIT_API void UArray_unescape(UArray *self);
66 
67 BASEKIT_API void UArray_quote(UArray *self);
68 BASEKIT_API void UArray_unquote(UArray *self);
69 
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);
72 
73 // encoding
74 
75 BASEKIT_API UArray* UArray_asBase64(const UArray *self, int charsPerLine);
76 BASEKIT_API UArray* UArray_fromBase64(const UArray *self);
77