935 {
936
942
993}
static Range rangeOfString(const String *self, const String *string, const Range range)
static String * initWithData(String *self, const Data *data, StringEncoding encoding)
static void insertCharactersAtIndex(String *self, const char *chars, size_t index)
static String * stringWithData(const Data *data, StringEncoding encoding)
static void replaceOccurrencesOfCharactersInRange(String *self, const char *chars, const Range range, const char *replacement)
static String * initWithContentsOfFile(String *self, const char *path, StringEncoding encoding)
static String * stringWithCapacity(size_t capacity)
static bool writeToFile(const String *self, const char *path, StringEncoding encoding)
static String * stringWithFormat(const char *fmt,...)
static bool isEqual(const Object *self, const Object *other)
static bool hasSuffix(const String *self, const String *suffix)
static void deleteCharactersInRange(String *self, const Range range)
static void setString(String *self, const String *string)
static String * description(const Object *self)
static String * initWithMemory(String *self, const ident mem, size_t length)
static String * initWithFormat(String *self, const char *fmt,...)
static bool hasPrefix(const String *self, const String *prefix)
static String * uppercaseString(const String *self)
static void replaceCharactersInRange(String *self, const Range range, const char *chars)
static String * stringWithContentsOfFile(const char *path, StringEncoding encoding)
static Array * componentsSeparatedByString(const String *self, const String *string)
static void setLength(String *self, size_t length)
static void setFormat(String *self, const char *fmt,...)
static void trim(String *self)
static String * lowercaseString(const String *self)
static void replaceOccurrencesOfCharacters(String *self, const char *chars, const char *replacement)
static String * initWithBytes(String *self, const uint8_t *bytes, size_t length, StringEncoding encoding)
static String * trimmedString(const String *self)
static void appendFormat(String *self, const char *fmt,...)
static String * stringWithCharacters(const char *chars)
static void replaceOccurrencesOfString(String *self, const String *string, const String *replacement)
static void appendBytes(String *self, const uint8_t *bytes, size_t length, StringEncoding encoding)
static String * initWithVaList(String *self, const char *fmt, va_list args)
static void appendString(String *self, const String *string)
static Data * getData(const String *self, StringEncoding encoding)
static String * stringWithMemory(const ident mem, size_t length)
static void setCharacters(String *self, const char *chars)
static void insertStringAtIndex(String *self, const String *string, size_t index)
static void replaceOccurrencesOfStringInRange(String *self, const String *string, const Range range, const String *replacement)
static String * initWithCharacters(String *self, const char *chars)
static void replaceStringInRange(String *self, const Range range, const String *string)
static int hash(const Object *self)
static String * stringWithBytes(const uint8_t *bytes, size_t length, StringEncoding encoding)
ident interface
The interface of the Class.
Data * initWithBytes(Data *self, const uint8_t *bytes, size_t length)
Initializes this Data by copying length of bytes.
int hash(const Object *self)
void dealloc(Object *self)
Frees all resources held by this Object.
String * uppercaseString(const String *self)
void appendBytes(String *self, const uint8_t *bytes, size_t length, StringEncoding encoding)
Appends the decoded contents of bytes.
bool writeToFile(const String *self, const char *path, StringEncoding encoding)
Writes this String to path.
String * initWithVaList(String *self, const char *fmt, va_list args)
Initializes this String with the specified arguments list.
String * stringWithMemory(const ident mem, size_t length)
Returns a new String with the given buffer.
String * lowercaseString(const String *self)
String * initWithCharacters(String *self, const char *chars)
Initializes this String by copying chars.
String * trimmedString(const String *self)
Creates a copy of this String with leading and trailing whitespace removed.
String * stringWithData(const Data *data, StringEncoding encoding)
Returns a new String with the the given Data.
String * stringWithFormat(const char *fmt)
Returns a new String with the given format string.
String * initWithMemory(String *self, const ident mem, size_t length)
Initializes this String with the specified buffer.
void insertCharactersAtIndex(String *self, const char *chars, size_t index)
Inserts the specified String at the given index.
String * stringWithCapacity(size_t capacity)
Returns a new String with the given capacity.
String * substring(const String *string, const Range range)
Creates a new String from a subset of this one.
String * initWithData(String *self, const Data *data, StringEncoding encoding)
Initializes this String with the given Data.
String * initWithContentsOfFile(String *self, const char *path, StringEncoding encoding)
Initializes this String with the contents of the FILE at path.
void trim(String *self)
Trims leading and trailing whitespace from this String.
String * initWithString(String *self, const String *string)
Initializes this String with the contents of string.
String * initWithCapacity(String *self, size_t capacity)
Initializes this String with the given capacity.
String * initWithFormat(String *self, const char *fmt,...)
Initializes this String with the specified format string.
String * stringWithContentsOfFile(const char *path, StringEncoding encoding)
Returns a new String with the contents of the FILE at path.
String * stringWithCharacters(const char *chars)
Returns a new String by copying chars.