stdTools.hpp File Reference
#include <etk/types.hpp>#include <vector>#include <sstream>#include <iostream>#include <string>#include <iomanip>#include <algorithm>#include <chrono>Go to the source code of this file.
Classes | |
| class | utf8::iterator |
Namespaces | |
| u32char | |
| utf8 | |
| etk | |
Functions | |
| bool | u32char::isWhiteChar (char32_t _val) |
| bool | u32char::isSpecialChar (char32_t _val) |
| int32_t | u32char::toInt (char32_t _val) |
| char32_t | u32char::changeOrder (char32_t _val) |
| int8_t | u32char::convertUtf8 (char32_t _val, char _output[5]) |
| int8_t | utf8::theoricLen (const char _input) |
| bool | utf8::theoricFirst (const char _input) |
| char32_t | utf8::convertChar32 (const char *_input) |
| template<class TYPE > | |
| std::string | etk::to_string (const TYPE &_variable) |
| template<class TYPE > | |
| std::string | etk::to_string (const std::vector< TYPE > &_list) |
| template<class TYPE > | |
| bool | etk::from_string (TYPE &_variableRet, const std::string &_value) |
| template<class TYPE > | |
| const TYPE & | std::avg (const TYPE &_min, const TYPE &_val, const TYPE &_max) |
| template<class TYPE > | |
| const TYPE & | etk::avg (const TYPE &_min, const TYPE &_val, const TYPE &_max) |
| int32_t | strlen (const char32_t *_data) |
Variables | |
| const char32_t | u32char::Null |
| const char32_t | u32char::Return |
| const char32_t | u32char::CarrierReturn |
| const char32_t | u32char::Tabulation |
| const char32_t | u32char::Suppress |
| const char32_t | u32char::Delete |
| const char32_t | u32char::Space |
| const char32_t | u32char::Escape |
Detailed Description
- Copyright
- 2011, Edouard DUPIN, all right reserved
- Note
- License: APACHE v2.0 (see license file)
Function Documentation
§ avg()
template<class TYPE >
| const TYPE& std::avg | ( | const TYPE & | _min, |
| const TYPE & | _val, | ||
| const TYPE & | _max | ||
| ) |
in std, we have min, max but not avg ==> it is missing... the Defineing avg template.
- Parameters
-
[in] _min Minimum value of the range [in] _val The value that we want a min/max [in] _max Maximum value of the range
- Returns
- Value that min/max applied
§ strlen()
| int32_t strlen | ( | const char32_t * | _data | ) |
Claculate the size of a string (unicode)
- Parameters
-
[in] _data Data to parse to find the end of string
- Returns
- the Number of char32_t befor the '\0' value
1.8.12