ncmpc  0.31
Data Structures | Functions
charset.hxx File Reference
#include "config.h"
#include "util/Compiler.h"

Go to the source code of this file.

Data Structures

class  Utf8ToLocale
 
class  LocaleToUtf8
 

Functions

char * utf8_to_locale (const char *str)
 
char * locale_to_utf8 (const char *str)
 
char * replace_utf8_to_locale (char *src)
 
char * replace_locale_to_utf8 (char *src)
 

Function Documentation

◆ utf8_to_locale()

char* utf8_to_locale ( const char *  str)

◆ locale_to_utf8()

char* locale_to_utf8 ( const char *  str)

◆ replace_utf8_to_locale()

char* replace_utf8_to_locale ( char *  src)

Converts the UTF-8 string to the locale, and frees the source pointer. Returns the source pointer as-is if no conversion is required.

◆ replace_locale_to_utf8()

char* replace_locale_to_utf8 ( char *  src)

Converts the locale string to UTF-8, and frees the source pointer. Returns the source pointer as-is if no conversion is required.