52 :
public std::basic_string<as_char_t>
69 String(
char const * str,
int len = -1);
70 String(
wchar_t const * str,
int len = -1);
71 String(as_char_t
const * str,
int len = -1);
72 String(std::string
const & str);
73 String(std::wstring
const & str);
74 String(std::basic_string<as_char_t>
const & str);
bool operator!=(char const *str) const
Compare this String against a char const * string.
bool valid() const
Check validity of the string.
String simplified() const
Make a simplified copy of this string.
ssize_t utf8_length() const
Calculate the length if converted to UTF-8.
std::string to_utf8() const
Convert a string to UTF-8 and return the result.
Float64::float64_type to_float64() const
Convert a string to a floating point number.
String & operator+=(char const *str)
Append str to this String.
String()
Initialize an empty string.
bool is_int64() const
Check whether this string represents a valid integer.
bool is_number() const
Check whether this string represents a number.
String & operator=(char const *str)
Copy str in this String.
bool is_true() const
Check whether the string is considered true.
conversion_result_t from_as_char(as_char_t const *str, int len=-1)
Copy an as_char_t string to this String.
Int64::int64_type to_int64() const
Convert a string to an integer number.
static as_char_t const STRING_BOM
static as_char_t const STRING_CONTINUATION
conversion_result_t from_utf8(char const *str, int len=-1)
Copy a UTF-8 string to this String.
std::ostream & operator<<(std::ostream &out, Node const &node)
Send a node to the specified output stream.
bool operator==(char const *str) const
Compare this String against a char const * string.
conversion_result_t from_wchar(wchar_t const *str, int len=-1)
Copy a wchar_t string to this String.
The AlexScript to JavaScript namespace.
bool is_float64() const
Check whether the string represents a valid floating pointer number.
conversion_result_t from_char(char const *str, int len=-1)
Concatenate a String and a C-string.
static bool valid_character(as_char_t c)
Check whether a character is considered valid.