MPD: fs/Charset.hxx File Reference

MPD 0.20.15

Functions
Charset.hxx File Reference
`#include "check.h"`
`#include "Compiler.h"`
`#include "Traits.hxx"`
Include dependency graph for Charset.hxx:

Go to the source code of this file.

## Functions
gcc_const const char * | GetFSCharset () noexcept
| Gets file system character set name. More...
void | SetFSCharset (const char *charset)
| Throws std::runtime_error on error. More...
void | DeinitFSCharset () noexcept
gcc_nonnull_all PathTraitsUTF8::string | PathToUTF8 (PathTraitsFS::const_pointer_type path_fs)
| Convert the path to UTF-8. More...
gcc_nonnull_all PathTraitsFS::string | PathFromUTF8 (PathTraitsUTF8::const_pointer_type path_utf8)
| Convert the path from UTF-8. More...

## Function Documentation

## ◆ DeinitFSCharset()

void DeinitFSCharset | ( |  | ) |
| noexcept

## ◆ GetFSCharset()

gcc_const const char* GetFSCharset | ( |  | ) |
| noexcept

Gets file system character set name.

## ◆ PathFromUTF8()

gcc_nonnull_all PathTraitsFS::string PathFromUTF8 | ( | PathTraitsUTF8::const_pointer_type | path_utf8 | ) |

Convert the path from UTF-8.

Throws std::runtime_error on error.

## ◆ PathToUTF8()

gcc_nonnull_all PathTraitsUTF8::string PathToUTF8 | ( | PathTraitsFS::const_pointer_type | path_fs | ) |

Convert the path to UTF-8.

Throws std::runtime_error on error.

## ◆ SetFSCharset()

void SetFSCharset | ( | const char * | charset | ) |

Throws std::runtime_error on error.