#include "string.h"
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <iomanip>
Include dependency graph for string.cpp:

Go to the source code of this file.
Functions | |
| bool | isBinary (const std::string &str) |
| Test a string for binary bytes. | |
| void | dos2unix (string &dest, const string &src) |
| Convert text to Unix end-of-line convention. | |
| void | dos2unix (wstring &dest, const wstring &src) |
| Convert wide text to Unix end-of-line convention. | |
| void | unix2dos (string &dest, const string &src) |
| Convert text to DOS end-of-line convention. | |
| void | unix2dos (wstring &dest, const wstring &src) |
| Convert wide text to DOS end-of-line convention. | |
| void | readStream (istream &is, string &dest) |
| Read an input stream into a string, until EOF. | |
| void | writeStream (ostream &os, const string &src) |
| Write a string to an output stream. | |
| void | readUnicodeStream (istream &is, wstring &dest) |
| Read an input stream into a wide string, until EOF. | |
| void | writeUnicodeStream (ostream &os, const wstring &src) |
| Write a wide string to an output stream. | |
| void | string2wstring (wstring &dest, const string &src) |
| Convert a string to a wide string. | |
| void | wstring2string (string &dest, const wstring &src) |
| Convert a wide string to a string. | |
| void | utf8decode (wstring &dest, const string &src) |
| Convert a utf8 encoded string to a wide string. | |
| void | bin2src (std::ostream &os, const unsigned char *buffer, const int n) |
| Output a memory buffer as C/C++ source. | |
| void | bin2src (std::ostream &os, const std::string &src) |
| Output a binary string as C/C++ source. | |
| void | bin2src (std::ostream &os, std::istream &is) |
| Encode binary input stream as C/C++ source, until EOF. | |
| void | bin2asm (std::ostream &os, const unsigned char *buffer, const int n) |
| Output a memory buffer as gcc assembler. | |
| void | bin2asm (std::ostream &os, const std::string &src) |
| Output a string as gcc assembler. | |
| void | bin2asm (std::ostream &os, std::istream &is) |
| Encode input stream as gcc assembler. | |
| unsigned int | fromHex4 (unsigned char ch) |
| Convert from ASCII character to binary. | |
| unsigned char | toHex4 (unsigned int val) |
| Convert from binary to ASCII character. | |
| bool | stringSplit (vector< string > &vec, const string &str, const string &delim) |
| Split a string, using a delimiter. | |
| bool | stringMerge (const vector< string > &vec, string &str, const string &delim) |
| Merge a vector of strings, inserting a delimiter. | |
| double | atof (const std::string &str) |
| std::string version of ANSI C atof() | |
| int | atoi (const std::string &str) |
| std::string version of ANSI C atoi() | |
| long | atol (const std::string &str) |
| std::string version of ANSI C atol() | |
| bool | atob (const std::string &str) |
| std::string to bool, inspired by ANSI C atoi() | |
Definition in file string.cpp.
1.2.18