string
Object Hierarchy:
Description:
[ Compact ]
[ Immutable ]
public class string
Content:
Properties:
Static methods:
- public static string joinv (string separator, string[] str_array)
- public static string join (string separator, ...)
- public static string nfill (size_t length, char fill_char)
Methods:
- public unowned string? str (string needle)
- public unowned string? rstr (string needle)
- public unowned string? rstr_len (ssize_t haystack_len, string needle)
- public int index_of (string needle, int start_index = 0)
- public int last_index_of (string needle, int start_index = 0)
- public int index_of_char (unichar c, int start_index = 0)
- public int last_index_of_char (unichar c, int start_index = 0)
- public bool has_prefix (string prefix)
- public bool has_suffix (string suffix)
- public string printf (...)
- public string vprintf (va_list args)
- public int scanf (...)
- public string concat (string string2, ...)
- public string escape (string exceptions)
- public string compress ()
- public string[] split (string delimiter, int max_tokens = 0)
- public string[] split_set (string delimiters, int max_tokens = 0)
- public char @get (long index)
- public bool valid_char (int index)
- public unowned string next_char ()
- public bool get_next_char (ref int index, out unichar c)
- public unichar get_char (long index = 0)
- public unichar get_char_validated (ssize_t max_len = -1)
- public unowned string utf8_offset (long offset)
- public unowned string offset (long offset)
- public long pointer_to_offset (string pos)
- public int index_of_nth_char (long c)
- public unowned string prev_char ()
- public bool get_prev_char (ref int index, out unichar c)
- public long len ()
- public unowned string chr (ssize_t len, unichar c)
- public unowned string rchr (ssize_t len, unichar c)
- public string reverse (ssize_t len = -1)
- public bool validate (ssize_t max_len = -1, out char* end = null)
- public string normalize (ssize_t len = -1, NormalizeMode mode = DEFAULT)
- public string up (ssize_t len = -1)
- public string down (ssize_t len = -1)
- public string casefold (ssize_t len = -1)
- public int collate (string str2)
- public string collate_key (ssize_t len = -1)
- public string collate_key_for_filename (ssize_t len = -1)
- public string locale_to_utf8 (ssize_t len, out size_t bytes_read, out size_t bytes_written, out Error error = null)
- public unowned string _chomp ()
- public string chomp ()
- public unowned string _chug ()
- public string chug ()
- public unowned string _strip ()
- public string strip ()
- public unowned string _delimit (string delimiters, char new_delimiter)
- public string delimit (string delimiters, char new_delimiter)
- public uint hash ()
- public int to_int ()
- public long to_long (out string endptr = null, int _base = 0)
- public double to_double (out string endptr = null)
- public ulong to_ulong (out string endptr = null, int _base = 0)
- public int64 to_int64 (out string endptr = null, int _base = 0)
- public uint64 to_uint64 (out string endptr = null, int _base = 0)
- public bool to_bool ()
- public size_t size ()
- public int ascii_casecmp (string s2)
- public int ascii_ncasecmp (string s2, size_t n)
- public void canon (string valid_chars, char substitutor)
- public string dup ()
- public string ndup (size_t n)
- public string substring (long offset, long len = -1)
- public string slice (long start, long end)
- public string splice (long start, long end, string? str = null)
- public bool contains (string needle)
- public string replace (string old, string replacement)
- public int char_count (ssize_t max = -1)
- public char[] to_utf8 ()
- public unowned string to_string ()
Fields: