-
Notifications
You must be signed in to change notification settings - Fork 3
/
LCString.h
25 lines (20 loc) · 1.02 KB
/
LCString.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef LivelyC_LCString_h
#define LivelyC_LCString_h
#include "LCCore.h"
#include "LCArray.h"
#include "LCData.h"
extern LCTypeRef LCTypeString;
LCStringRef LCStringCreate(char *string);
LCStringRef LCStringCreateFromHash(LCContextRef context, char hash[HASH_LENGTH]);
LCStringRef LCStringCreateFromChars(char* characters, size_t length);
LCStringRef LCStringCreateFromStrings(LCStringRef strings[], size_t length);
LCStringRef LCStringCreateFromStringsWithDelim(LCStringRef strings[], size_t length, char *delimiter);
LCStringRef LCStringCreateFromStringArray(char* characters[], size_t length);
LCStringRef LCStringCreateFromStringArrayWithDelim(char* strings[], size_t length, char *delimiter);
LCStringRef LCStringCreateFromData(LCDataRef data);
size_t LCStringLength(LCStringRef string);
bool LCStringEqual(LCStringRef string1, LCStringRef string2);
bool LCStringEqualCString(LCStringRef string, char* cString);
char* LCStringChars(LCStringRef string);
LCArrayRef LCStringCreateTokens(LCStringRef string, char delimiter);
#endif