Functions | |
| char * | bg_strdup (char *old_string, const char *new_string) |
| Duplicate a string. | |
| char * | bg_strndup (char *old_string, const char *new_start, const char *new_end) |
| Duplicate a string from a part of a source string. | |
| char * | bg_strcat (char *old_string, const char *tail) |
| Concatenate two strings. | |
| char * | bg_strncat (char *old_string, const char *start, const char *end) |
| Append a part of a string to another string. | |
| char * | bg_toupper (const char *str) |
| Convert an UTF-8 string to uppercase. | |
| int | bg_string_is_url (const char *str) |
| Check if a string looks like an URL. | |
| int | bg_url_split (const char *url, char **protocol, char **user, char **password, char **hostname, int *port, char **path) |
| Split an URL into their parts. | |
| char * | bg_get_tumbnail_file (const char *gml) |
| Get thumbnail filename. | |
| char * | bg_sprintf (const char *format,...) __attribute__((format(printf |
| Print into a string. | |
| char char ** | bg_strbreak (const char *str, char delim) |
| Break a string into substrings. | |
| void | bg_strbreak_free (char **retval) |
| Free a substrings array. | |
| char * | bg_scramble_string (const char *str) |
| Scramble a string. | |
| char * | bg_descramble_string (const char *str) |
| Descramble a string. | |
| char * | bg_string_to_uri (const char *pos1, int len) |
| Convert a binary string (in system charset) to an URI. | |
| char * | bg_uri_to_string (const char *pos1, int len) |
| Convert an URI to a a binary string (in system charset). | |
| char ** | bg_urilist_decode (const char *str, int len) |
| Decode an URI list. | |
| void | bg_urilist_free (char **uri_list) |
| Free an URI list. | |
| char * | bg_system_to_utf8 (const char *str, int len) |
| Convert a string from the system character set to UTF-8. | |
| char * | bg_utf8_to_system (const char *str, int len) |
| Convert a string from UTF-8 to the system character set. | |
| const char * | bg_get_language_name (const char *iso) |
| Get a language name. | |
| int | bg_string_match (const char *str, const char *key_list) |
| Check if a string occurs in a space-separated list of strings. | |
| char* bg_strdup | ( | char * | old_string, | |
| const char * | new_string | |||
| ) |
Duplicate a string.
| old_string | (will eventually be freed) | |
| new_string | New string |
| char* bg_strndup | ( | char * | old_string, | |
| const char * | new_start, | |||
| const char * | new_end | |||
| ) |
Duplicate a string from a part of a source string.
| old_string | (will eventually be freed) | |
| new_start | Start of the new string | |
| new_end | Points to the first character after the end of the new string |
| char* bg_strcat | ( | char * | old_string, | |
| const char * | tail | |||
| ) |
Concatenate two strings.
| old_string | Old string (will be freed) | |
| tail | Will be appended to old_string |
| char* bg_strncat | ( | char * | old_string, | |
| const char * | start, | |||
| const char * | end | |||
| ) |
Append a part of a string to another string.
| old_string | Old string (will be freed) | |
| start | Start of the string to be appended | |
| end | Points to the first character after the end of the string to be appended |
| char* bg_toupper | ( | const char * | str | ) |
Convert an UTF-8 string to uppercase.
| str | String |
| int bg_string_is_url | ( | const char * | str | ) |
Check if a string looks like an URL.
| str | A string |
| int bg_url_split | ( | const char * | url, | |
| char ** | protocol, | |||
| char ** | user, | |||
| char ** | password, | |||
| char ** | hostname, | |||
| int * | port, | |||
| char ** | path | |||
| ) |
Split an URL into their parts.
| url | An URL | |
| protocol | Protocol (returned) | |
| user | Username (returned) | |
| password | Password (returned) | |
| hostname | Hostname (returned) | |
| port | Port (returned) | |
| path | Path (returned) |
| char* bg_get_tumbnail_file | ( | const char * | gml | ) |
Get thumbnail filename.
| gml |
| char* bg_sprintf | ( | const char * | format, | |
| ... | ||||
| ) |
Print into a string.
| format | printf like format |
| char char** bg_strbreak | ( | const char * | str, | |
| char | delim | |||
| ) |
Break a string into substrings.
| str | String | |
| delim | Delimiter for the substrings |
| void bg_strbreak_free | ( | char ** | retval | ) |
Free a substrings array.
| retval | Array |
| char* bg_scramble_string | ( | const char * | str | ) |
Scramble a string.
| str | String to be scrambled |
| char* bg_descramble_string | ( | const char * | str | ) |
Descramble a string.
| str | String to be descrambled |
| char* bg_string_to_uri | ( | const char * | pos1, | |
| int | len | |||
| ) |
Convert a binary string (in system charset) to an URI.
| pos1 | The string | |
| len | or -1 |
| char* bg_uri_to_string | ( | const char * | pos1, | |
| int | len | |||
| ) |
Convert an URI to a a binary string (in system charset).
| pos1 | The string | |
| len | or -1 |
| char** bg_urilist_decode | ( | const char * | str, | |
| int | len | |||
| ) |
Decode an URI list.
| str | String | |
| len | Length of the string or -1 |
| void bg_urilist_free | ( | char ** | uri_list | ) |
| char* bg_system_to_utf8 | ( | const char * | str, | |
| int | len | |||
| ) |
Convert a string from the system character set to UTF-8.
| str | String | |
| len | Length or -1 |
| char* bg_utf8_to_system | ( | const char * | str, | |
| int | len | |||
| ) |
Convert a string from UTF-8 to the system character set.
| str | String | |
| len | Length or -1 |
| const char* bg_get_language_name | ( | const char * | iso | ) |
Get a language name.
| iso | An iso-639 3 character code |
| int bg_string_match | ( | const char * | str, | |
| const char * | key_list | |||
| ) |
Check if a string occurs in a space-separated list of strings.
| str | String | |
| key_list | Space separated list of keys |
1.5.6