|
LMMS
|
#include <config.h>#include <stdint.h>#include <cstring>#include <calf/osctl.h>#include <calf/utils.h>#include <cstdio>#include <sstream>Namespaces | |
| namespace | calf_utils |
Functions | |
| std::string | calf_utils::encode_map (const dictionary &data) |
| Serialize a dictionary to a string. | |
| void | calf_utils::decode_map (dictionary &data, const string &src) |
| std::string | calf_utils::xml_escape (const std::string &src) |
| Escape a string to be used in XML file. | |
| std::string | calf_utils::to_xml_attr (const std::string &key, const std::string &value) |
| Encode a key-value pair as XML attribute. | |
| std::string | calf_utils::load_file (const std::string &src) |
| Load file from disk into a std::string blob, or throw file_exception. | |
| std::string | calf_utils::i2s (int value) |
| int-to-string | |
| std::string | calf_utils::f2s (double value) |
| float-to-string | |
| std::string | calf_utils::ff2s (double value) |
| float-to-string-that-doesn't-resemble-an-int | |
| std::string | calf_utils::indent (const std::string &src, const std::string &indent) |
| Indent a string by another string (prefix each line). | |
| vector< direntry > | calf_utils::list_directory (const string &path) |