-
Notifications
You must be signed in to change notification settings - Fork 0
string.h
Baptiste Thémine edited this page Jul 5, 2020
·
8 revisions
#include <JLC/string.h>
Definition of character sequence container class.
The main purpose of class String is to provide methods to ease build, copy, search and transform operations with character sequences and regular expressions.
Characters are accessible through the bracket operator []
at unique index within string starting from 0
to length-1
.
Zero-sized and NULL
strings are valid but cannot be dereferenced.
String is compatible with C-strings and C++ std::string
.
- (Mandatory)
<cctype>
,<cstdio>
,<cstdlib>
,<cstring>
,<iostream>
,<iterator>
,<stdexcept>
,<JLC/debug.h>
,<JLC/functions.h>
must be included. - (Optional)
<cstdarg>
,<initializer_list>
(C++11),<regex>
(C++11) and<JLC/list.h>
provide additional features.
Name | Description |
---|---|
class String | Defines the class String and provides string methods. |
namespace string | Defines the namespace string and provides types, constants, exceptions and utility functions for string manipulation. |