Open-Transactions
0.93.0-ge03d287
|
#include <OTString.hpp>
Public Types | |
typedef std::list< std::string > | List |
typedef std::map< std::string, std::string > | Map |
Public Member Functions | |
EXPORT | OTString () |
EXPORT | OTString (const OTString &value) |
EXPORT | OTString (const OTASCIIArmor &value) |
OTString (const OTSignature &value) | |
EXPORT | OTString (const OTContract &value) |
EXPORT | OTString (const OTIdentifier &value) |
OTString (OTPseudonym &value) | |
EXPORT | OTString (const char *value) |
OTString (const char *value, size_t size) | |
EXPORT | OTString (const std::string &value) |
virtual EXPORT | ~OTString () |
virtual EXPORT void | Release () |
void | Initialize () |
EXPORT OTString & | operator= (OTString rhs) |
void | swap (OTString &rhs) |
bool | operator> (const OTString &rhs) const |
bool | operator< (const OTString &rhs) const |
bool | operator<= (const OTString &rhs) const |
bool | operator>= (const OTString &rhs) const |
EXPORT bool | operator== (const OTString &rhs) const |
EXPORT int64_t | ToLong () const |
EXPORT uint64_t | ToUlong () const |
EXPORT bool | At (uint32_t index, char &c) const |
EXPORT bool | Exists () const |
EXPORT bool | DecodeIfArmored (bool escapedIsAllowed=true) |
EXPORT uint32_t | GetLength () const |
EXPORT bool | Compare (const char *compare) const |
EXPORT bool | Compare (const OTString &compare) const |
EXPORT bool | Contains (const char *compare) const |
bool | Contains (const OTString &compare) const |
EXPORT const char * | Get () const |
EXPORT void | Set (const char *data, uint32_t enforcedMaxLength=0) |
EXPORT void | Set (const OTString &data) |
EXPORT bool | MemSet (const char *mem, uint32_t size) |
EXPORT void | Concatenate (const char *arg,...) |
void | Concatenate (const OTString &data) |
void | Truncate (uint32_t index) |
EXPORT void | Format (const char *fmt,...) |
void | ConvertToLowerCase () const |
void | ConvertToUpperCase () const |
EXPORT bool | TokenizeIntoKeyValuePairs (Map &map) const |
EXPORT void | OTfgets (std::istream &ofs) |
bool | sgets (char *buffer, uint32_t size) |
char | sgetc () |
void | sungetc () |
void | reset () |
void | WriteToFile (std::ostream &ofs) const |
void | Release_String () |
EXPORT void | zeroMemory () const |
Static Public Member Functions | |
static bool | vformat (const char *fmt, std::va_list *pvl, std::string &s) |
static EXPORT std::string & | trim (std::string &str) |
static EXPORT std::string | replace_chars (const std::string &str, const std::string &charsFrom, const char &charTo) |
static EXPORT bool | safe_strcpy (char *dest, const char *src, size_t destSize, bool zeroSource=false) |
static size_t | safe_strlen (const char *s, size_t max) |
static EXPORT int64_t | StringToLong (const std::string &number) |
static EXPORT uint64_t | StringToUlong (const std::string &number) |
Protected Attributes | |
uint32_t | length_ |
uint32_t | position_ |
char * | data_ |
Friends | |
EXPORT friend std::ostream & | operator<< (std::ostream &os, const OTString &obj) |
Definition at line 158 of file OTString.hpp.
typedef std::list<std::string> opentxs::OTString::List |
Definition at line 161 of file OTString.hpp.
typedef std::map<std::string, std::string> opentxs::OTString::Map |
Definition at line 162 of file OTString.hpp.
opentxs::OTString::OTString | ( | ) |
Definition at line 786 of file OTString.cpp.
opentxs::OTString::OTString | ( | const OTString & | value | ) |
Definition at line 857 of file OTString.cpp.
opentxs::OTString::OTString | ( | const OTASCIIArmor & | value | ) |
Definition at line 819 of file OTString.cpp.
opentxs::OTString::OTString | ( | const OTSignature & | value | ) |
Definition at line 837 of file OTString.cpp.
opentxs::OTString::OTString | ( | const OTContract & | value | ) |
Definition at line 807 of file OTString.cpp.
opentxs::OTString::OTString | ( | const OTIdentifier & | value | ) |
Definition at line 797 of file OTString.cpp.
opentxs::OTString::OTString | ( | OTPseudonym & | value | ) |
Definition at line 847 of file OTString.cpp.
opentxs::OTString::OTString | ( | const char * | value | ) |
Definition at line 866 of file OTString.cpp.
opentxs::OTString::OTString | ( | const char * | value, |
size_t | size | ||
) |
Definition at line 875 of file OTString.cpp.
opentxs::OTString::OTString | ( | const std::string & | value | ) |
Definition at line 884 of file OTString.cpp.
|
virtual |
Definition at line 774 of file OTString.cpp.
bool opentxs::OTString::At | ( | uint32_t | index, |
char & | c | ||
) | const |
Definition at line 1025 of file OTString.cpp.
bool opentxs::OTString::Compare | ( | const char * | compare | ) | const |
Definition at line 1102 of file OTString.cpp.
bool opentxs::OTString::Compare | ( | const OTString & | compare | ) | const |
Definition at line 1119 of file OTString.cpp.
void opentxs::OTString::Concatenate | ( | const char * | arg, |
... | |||
) |
Definition at line 1334 of file OTString.cpp.
void opentxs::OTString::Concatenate | ( | const OTString & | data | ) |
Definition at line 1353 of file OTString.cpp.
bool opentxs::OTString::Contains | ( | const char * | compare | ) | const |
Definition at line 1137 of file OTString.cpp.
bool opentxs::OTString::Contains | ( | const OTString & | compare | ) | const |
Definition at line 1148 of file OTString.cpp.
void opentxs::OTString::ConvertToLowerCase | ( | ) | const |
Definition at line 1171 of file OTString.cpp.
void opentxs::OTString::ConvertToUpperCase | ( | ) | const |
Definition at line 1182 of file OTString.cpp.
bool opentxs::OTString::DecodeIfArmored | ( | bool | escapedIsAllowed = true | ) |
Definition at line 1212 of file OTString.cpp.
bool opentxs::OTString::Exists | ( | void | ) | const |
Definition at line 1035 of file OTString.cpp.
void opentxs::OTString::Format | ( | const char * | fmt, |
... | |||
) |
Definition at line 1319 of file OTString.cpp.
const char * opentxs::OTString::Get | ( | void | ) | const |
Definition at line 1045 of file OTString.cpp.
uint32_t opentxs::OTString::GetLength | ( | void | ) | const |
Definition at line 1040 of file OTString.cpp.
void opentxs::OTString::Initialize | ( | ) |
Definition at line 779 of file OTString.cpp.
bool opentxs::OTString::MemSet | ( | const char * | mem, |
uint32_t | size | ||
) |
Definition at line 967 of file OTString.cpp.
bool opentxs::OTString::operator< | ( | const OTString & | rhs | ) | const |
Definition at line 477 of file OTString.cpp.
bool opentxs::OTString::operator<= | ( | const OTString & | rhs | ) | const |
Definition at line 491 of file OTString.cpp.
Definition at line 1011 of file OTString.cpp.
bool opentxs::OTString::operator== | ( | const OTString & | rhs | ) | const |
Definition at line 1077 of file OTString.cpp.
bool opentxs::OTString::operator> | ( | const OTString & | rhs | ) | const |
Definition at line 463 of file OTString.cpp.
bool opentxs::OTString::operator>= | ( | const OTString & | rhs | ) | const |
Definition at line 505 of file OTString.cpp.
void opentxs::OTString::OTfgets | ( | std::istream & | ofs | ) |
Definition at line 1159 of file OTString.cpp.
|
virtual |
Definition at line 765 of file OTString.cpp.
void opentxs::OTString::Release_String | ( | void | ) |
Definition at line 751 of file OTString.cpp.
|
static |
Definition at line 420 of file OTString.cpp.
void opentxs::OTString::reset | ( | void | ) |
Definition at line 1464 of file OTString.cpp.
|
static |
Definition at line 353 of file OTString.cpp.
|
static |
Definition at line 388 of file OTString.cpp.
void opentxs::OTString::Set | ( | const char * | data, |
uint32_t | enforcedMaxLength = 0 |
||
) |
Definition at line 1055 of file OTString.cpp.
void opentxs::OTString::Set | ( | const OTString & | data | ) |
Definition at line 1067 of file OTString.cpp.
char opentxs::OTString::sgetc | ( | void | ) |
Definition at line 1443 of file OTString.cpp.
bool opentxs::OTString::sgets | ( | char * | buffer, |
uint32_t | size | ||
) |
Definition at line 1380 of file OTString.cpp.
|
static |
Definition at line 677 of file OTString.cpp.
|
static |
Definition at line 662 of file OTString.cpp.
void opentxs::OTString::sungetc | ( | void | ) |
Definition at line 1457 of file OTString.cpp.
void opentxs::OTString::swap | ( | OTString & | rhs | ) |
Definition at line 1018 of file OTString.cpp.
bool opentxs::OTString::TokenizeIntoKeyValuePairs | ( | Map & | map | ) | const |
Definition at line 550 of file OTString.cpp.
int64_t opentxs::OTString::ToLong | ( | ) | const |
Definition at line 702 of file OTString.cpp.
uint64_t opentxs::OTString::ToUlong | ( | ) | const |
Definition at line 695 of file OTString.cpp.
|
static |
Definition at line 398 of file OTString.cpp.
void opentxs::OTString::Truncate | ( | uint32_t | index | ) |
Definition at line 1193 of file OTString.cpp.
|
static |
Definition at line 191 of file OTString.cpp.
void opentxs::OTString::WriteToFile | ( | std::ostream & | ofs | ) | const |
Definition at line 1364 of file OTString.cpp.
void opentxs::OTString::zeroMemory | ( | ) | const |
Definition at line 744 of file OTString.cpp.
|
friend |
Definition at line 150 of file OTString.cpp.
|
protected |
Definition at line 277 of file OTString.hpp.
|
protected |
Definition at line 275 of file OTString.hpp.
|
protected |
Definition at line 276 of file OTString.hpp.