|
std::string & | jau::byteHexString (std::string &dest, const uint8_t value, const bool lowerCase) noexcept |
| Produce a hexadecimal string representation of the given byte value.
|
|
template<class uint8_container_type, std::enable_if_t< std::is_integral_v< typename uint8_container_type::value_type > &&std::is_convertible_v< typename uint8_container_type::value_type, uint8_t >, bool > = true> |
std::string | jau::bytesHexString (const uint8_container_type &bytes, const bool lsbFirst, const bool lowerCase=true, const bool skipLeading0x=false) noexcept |
|
std::string | jau::bytesHexString (const void *data, const nsize_t length, const bool lsbFirst, const bool lowerCase=true, const bool skipLeading0x=false) noexcept |
| Produce a hexadecimal string representation of the given byte values.
|
|
std::string | jau::format_string (const char *format,...) |
| Returns a string according to printf() formatting rules and variable number of arguments following the format argument.
|
|
template<typename... Args> |
constexpr std::string | jau::format_string_v (const std::size_t maxStrLen, const std::string_view format, const Args &...args) |
| Safely returns a string according to printf() formatting rules and variable number of arguments following the format argument.
|
|
uint64_t | jau::from_hexstring (std::string const &s, const bool lsbFirst=!jau::is_little_endian(), const bool checkLeading0x=true) noexcept |
| Converts a given hexadecimal string representation into a uint64_t value according to hexStringBytes().
|
|
std::string | jau::get_string (const uint8_t *buffer, nsize_t const buffer_len, nsize_t const max_len) noexcept |
| Returns a C++ String taken from buffer with maximum length of min(max_len, max_len).
|
|
size_t | jau::hexStringBytes (std::vector< uint8_t > &out, const std::string &hexstr, const bool lsbFirst, const bool checkLeading0x) noexcept |
| Converts a given hexadecimal string representation into a byte vector.
|
|
size_t | jau::hexStringBytes (std::vector< uint8_t > &out, const uint8_t hexstr[], const size_t hexstr_len, const bool lsbFirst, const bool checkLeading0x) noexcept |
| See hexStringBytes()
|
|
bool | jau::is_ascii_code (int c) noexcept |
|
std::vector< std::string > | jau::split_string (const std::string &str, const std::string &separator) noexcept |
| Split given string str at separator into the resulting std::vector excluding the separator sequence .
|
|
template<class value_type, std::enable_if_t< std::is_integral_v< value_type >, bool > = true> |
std::string | jau::to_decstring (const value_type &v, const char separator=',', const nsize_t width=0) noexcept |
| Produce a decimal string representation of an integral integer value.
|
|
template<class value_type, std::enable_if_t< std::is_pointer_v< value_type >, bool > = true> |
std::string | jau::to_hexstring (value_type const &v, const bool skipLeading0x=false) noexcept |
| Produce a lower-case hexadecimal string representation with leading 0x in MSB of the given pointer.
|
|
bool | jau::to_integer (long long &result, const char *str, size_t str_len, const char limiter='\0', const char *limiter_pos=nullptr) |
|
bool | jau::to_integer (long long &result, const std::string &str, const char limiter='\0', const char *limiter_pos=nullptr) |
|
template<class value_type, std::enable_if_t< std::is_integral_v< value_type >||std::is_floating_point_v< value_type >, bool > = true> |
std::string | jau::to_string (const value_type &ref) |
|
template<typename T> |
std::string | jau::to_string (std::vector< T > const &list) |
|
template<typename T> |
std::string | jau::to_string (std::vector< T > const &list, const std::string &delim) |
|
std::string | jau::toLower (const std::string &s) noexcept |
|
std::string & | jau::toLowerInPlace (std::string &s) noexcept |
|
std::string | jau::trim (const std::string &s) noexcept |
| trim copy
|
|
void | jau::trimInPlace (std::string &s) noexcept |
| trim in place
|
|
std::string | jau::vformat_string (const char *format, va_list ap) |
| Returns a string according to vprintf() formatting rules using va_list instead of a variable number of arguments.
|
|