foobar2000 SDK  2015-01-14
Namespaces | Functions | Variables
string_base.cpp File Reference

Go to the source code of this file.

Namespaces

 pfc
 

Functions

char pfc::ascii_tolower_lookup (char c)
 
t_int64 pfc::atoi64_ex (const char *src, t_size len)
 
t_uint64 pfc::atoui64_ex (const char *src, t_size len)
 
unsigned pfc::atoui_ex (const char *p_string, t_size p_string_len)
 
unsigned pfc::char_to_dec (char c)
 
unsigned pfc::char_to_hex (char c)
 
uint32_t pfc::charLower (uint32_t param)
 
uint32_t pfc::charUpper (uint32_t param)
 
void pfc::convert_to_lower_ascii (const char *src, t_size max, char *out, char replace)
 
void pfc::float_to_string (char *out, t_size out_max, double val, unsigned precision, bool b_sign)
 
char pfc::format_hex_char (unsigned p_val)
 
char pfc::format_hex_char_lowercase (unsigned p_val)
 
bool pfc::has_path_bad_chars (const char *param)
 
bool pfc::is_multiline (const char *p_string, t_size p_len)
 
bool pfc::is_path_bad_char (unsigned c)
 
bool pfc::is_path_separator (unsigned c)
 
int pfc::naturalSortCompare (const char *s1, const char *s2) throw ()
 
int pfc::naturalSortCompareI (const char *s1, const char *s2) throw ()
 
static int pfc::naturalSortCompareInternal (const char *s1, const char *s2, bool insensitive) throw ()
 
double pfc::parse_timecode (const char *in)
 
static size_t pfc::parseNumber (const char *in, uint64_t &outNumber)
 
static double pfc::pfc_string_to_float_internal (const char *src)
 
static t_uint64 pfc::pow10_helper (unsigned p_extra)
 
static uint64_t pfc::safeMulAdd (uint64_t prev, unsigned scale, uint64_t add)
 
t_size pfc::scan_filename (const char *ptr)
 
int pfc::strcmp_ex (const char *p1, t_size n1, const char *p2, t_size n2) throw ()
 
int pfc::strcmp_nc (const char *p1, size_t n1, const char *p2, size_t n2) throw ()
 
char * pfc::strdup_n (const char *src, t_size len)
 
int pfc::stricmp_ascii (const char *s1, const char *s2) throw ()
 
int pfc::stricmp_ascii_ex (const char *const s1, t_size const len1, const char *const s2, t_size const len2) throw ()
 
int pfc::stricmp_ascii_partial (const char *str, const char *substr) throw ()
 
t_size pfc::string_find_first (const char *p_string, char p_tofind, t_size p_start)
 
t_size pfc::string_find_first (const char *p_string, const char *p_tofind, t_size p_start)
 
t_size pfc::string_find_first_ex (const char *p_string, t_size p_string_length, char p_tofind, t_size p_start)
 
t_size pfc::string_find_first_ex (const char *p_string, t_size p_string_length, const char *p_tofind, t_size p_tofind_length, t_size p_start)
 
t_size pfc::string_find_first_nc (const char *p_string, t_size p_string_length, char c, t_size p_start)
 
t_size pfc::string_find_first_nc (const char *p_string, t_size p_string_length, const char *p_tofind, t_size p_tofind_length, t_size p_start)
 
t_size pfc::string_find_last (const char *p_string, char p_tofind, t_size p_start)
 
t_size pfc::string_find_last (const char *p_string, const char *p_tofind, t_size p_start)
 
t_size pfc::string_find_last_ex (const char *p_string, t_size p_string_length, char p_tofind, t_size p_start)
 
t_size pfc::string_find_last_ex (const char *p_string, t_size p_string_length, const char *p_tofind, t_size p_tofind_length, t_size p_start)
 
bool pfc::string_has_prefix (const char *string, const char *prefix)
 
bool pfc::string_has_prefix_i (const char *string, const char *prefix)
 
bool pfc::string_has_suffix (const char *string, const char *suffix)
 
bool pfc::string_has_suffix_i (const char *string, const char *suffix)
 
bool pfc::string_is_numeric (const char *p_string, t_size p_length) throw ()
 
double pfc::string_to_float (const char *src, t_size max)
 
int pfc::stringCompareCaseInsensitive (const char *s1, const char *s2)
 
int pfc::stringCompareCaseInsensitiveEx (string_part_ref s1, string_part_ref s2)
 
bool pfc::stringEqualsI_ascii (const char *p1, const char *p2) throw ()
 
bool pfc::stringEqualsI_utf8 (const char *p1, const char *p2) throw ()
 
void pfc::stringToLowerAppend (string_base &out, const char *src, t_size len)
 
void pfc::stringToUpperAppend (string_base &out, const char *src, t_size len)
 
t_size pfc::strstr_ex (const char *p_string, t_size p_string_len, const char *p_substring, t_size p_substring_len) throw ()
 
void pfc::urlEncode (pfc::string_base &out, const char *in)
 
void pfc::urlEncodeAppend (pfc::string_base &out, const char *in)
 
void pfc::urlEncodeAppendRaw (pfc::string_base &out, const char *in, t_size inSize)
 

Variables

static const t_uint8 pfc::ascii_tolower_table [128] = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F}