string
Object Hierarchy:
Description:
[ Compact ]
[ Immutable ]
[ GIR ( name = "utf8" ) ]
[ CCode ( cname = "gchar" , const_cname = "const gchar" , copy_function = "g_strdup" , free_function = "g_free" , get_value_function = "g_value_get_string" , marshaller_type_name = "STRING" , param_spec_function = "g_param_spec_string" , set_value_function = "g_value_set_string" , take_value_function = "g_value_take_string" , type_id = "G_TYPE_STRING" , type_signature = "s" ) ]
public class string
Content:
Properties:
Static methods:
- private static void* copy_to_buffer (void* dest, string src)
- public static string join (string separator, ...)
- public static string joinv (string? separator, string?[]? str_array)
- private static char* memchr (char* s, int c, size_t n)
- public static string nfill (size_t length, char fill_char)
- public static bool set_str (ref string str, string new_str)
- private static string strndup (char* str, size_t n)
- private static long strnlen (char* str, long maxlen)
- private static char* strrstr (char* haystack, char* needle)
- private static char* strstr (char* haystack, char* needle)
- private static unichar utf8_get_char (char* str)
- private static char* utf8_next_char (char* str)
- private static char* utf8_prev_char (char* str)
- private static char* utf8_strchr (char* str, ssize_t len, unichar c)
- private static char* utf8_strrchr (char* str, ssize_t len, unichar c)
Methods:
- public char @get (long index)
- public unowned string _chomp ()
- public unowned string _chug ()
- public unowned string _delimit (string delimiters, char new_delimiter)
- public unowned string _strip ()
- public int ascii_casecmp (string s2)
- public string ascii_down (ssize_t len = -1)
- public int ascii_ncasecmp (string s2, size_t n)
- public string ascii_up (ssize_t len = -1)
- public void canon (string valid_chars, char substitutor)
- public string casefold (ssize_t len = -1)
- public int char_count (ssize_t max = -1)
- public string chomp ()
- public unowned string chr (ssize_t len, unichar c)
- public string chug ()
- 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 compress ()
- public string concat (string string2, ...)
- public bool contains (string needle)
- public string delimit (string delimiters, char new_delimiter)
- public string down (ssize_t len = -1)
- public string dup ()
- public string escape (string? exceptions = null)
- public unichar get_char (long index = 0)
- public unichar get_char_validated (ssize_t max_len = -1)
- public bool get_next_char (ref int index, out unichar c)
- public bool get_prev_char (ref int index, out unichar c)
- public bool has_prefix (string prefix)
- public bool has_suffix (string suffix)
- public uint hash ()
- public int index_of (string needle, int start_index = 0)
- public int index_of_char (unichar c, int start_index = 0)
- public int index_of_nth_char (long c)
- public bool is_ascii ()
- public int last_index_of (string needle, int start_index = 0)
- public int last_index_of_char (unichar c, int start_index = 0)
- public long len ()
- public string locale_to_utf8 (ssize_t len, out size_t bytes_read, out size_t bytes_written, out Error error = null)
- public string make_valid (ssize_t len = -1)
- public bool match_string (string search_term, bool accept_alternates)
- public string ndup (size_t n)
- public unowned string next_char ()
- public string normalize (ssize_t len = -1, NormalizeMode mode = DEFAULT)
- public unowned string offset (long offset)
- public long pointer_to_offset (string pos)
- public unowned string prev_char ()
- public string printf (...)
- public unowned string rchr (ssize_t len, unichar c)
- public string replace (string old, string replacement, int max_tokens = -1)
- public string reverse (ssize_t len = -1)
- public unowned string? rstr (string needle)
- public unowned string? rstr_len (ssize_t haystack_len, string needle)
- public int scanf (string format, ...)
- public size_t size ()
- public string slice (long start, long end)
- public string splice (long start, long end, string? str = null)
- public string[] split (string delimiter, int max_tokens = 0)
- public string[] split_set (string delimiters, int max_tokens = 0)
- public unowned string? str (string needle)
- public string strip ()
- public string substring (long offset, long len = -1)
- public string to_ascii (string? from_locale = null)
- public bool to_bool ()
- public double to_double (out unowned string endptr = null)
- public int to_int ()
- public int64 to_int64 (out unowned string endptr = null, int _base = 0)
- public long to_long (out unowned string endptr = null, int _base = 0)
- public unowned string to_string ()
- public uint64 to_uint64 (out unowned string endptr = null, int _base = 0)
- public ulong to_ulong (out unowned string endptr = null, int _base = 0)
- public string16 to_utf16 (long len = -1, out long items_read = null, out long items_written = null) throws ConvertError
- public string32 to_utf32 (long len = -1, out long items_read = null, out long items_written = null) throws ConvertError
- public string32 to_utf32_fast (long len = -1, out long items_written = null)
- public char[] to_utf8 ()
- public string[] tokenize_and_fold (string transit_locale, out string[] ascii_alternates)
- public string truncate_middle (size_t truncate_length)
- public string up (ssize_t len = -1)
- public unowned string utf8_offset (long offset)
- private char* utf8_offset_to_pointer (long offset)
- public bool valid_char (int index)
- public bool validate (ssize_t max_len = -1, out char* end = null)
- public bool validate_len (size_t max_len, out char* end = null)
- public string vprintf (va_list args)
Fields: