bux API Reference 1.11.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
StrUtil.h File Reference
#include <string>
#include <typeinfo>
#include <stdexcept>
Include dependency graph for StrUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bux
 THE common namespace of bux library.
 

Macros

#define HRTN(t)
 

Functions

const char * bux::ord_suffix (size_t i)
 
std::string bux::expand_env (const char *s)
 
std::string bux::_HRTN (const char *originalName)
 
std::string bux::OXCPT (const std::exception &e)
 
std::string OXCPT (const std::exception &e)
 

Macro Definition Documentation

◆ HRTN

#define HRTN ( t)
Value:
bux::_HRTN(typeid(t).name())
std::string _HRTN(const char *originalName)
Definition StrUtil.cpp:72

HRTN stands for Human Readable Type Name

Examples
parsergen/ParserGen/GrammarStrip.cpp, parsergen/ParserGen/main.cpp, parsergen/ScannerGen/main.cpp, parsergen/example/BisonGLR/main.cpp, and parsergen/example/MinLang/main.cpp.

Definition at line 22 of file StrUtil.h.

Referenced by bux::GLR::C_Parser::add(), bux::fittestType(), and bux::OXCPT().

Function Documentation

◆ OXCPT()

std::string bux::OXCPT ( const std::exception & e)
Parameters
[in]eInstance of std::exception descent
Returns
Printable form with reason

Definition at line 130 of file StrUtil.cpp.