Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_string.h File Reference

(0ccf980226462398d5097987466bcffd8236e1e9)

#include <stdint.h>
#include <string>
#include <vector>
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/span.h"
#include "core/fxcrt/widestring.h"
Include dependency graph for fx_string.h:

Go to the source code of this file.

Namespaces

namespace  fxcrt

Functions

constexpr uint32_t FXBSTR_ID (uint8_t c1, uint8_t c2, uint8_t c3, uint8_t c4)
ByteString FX_UTF8Encode (WideStringView wsStr)
std::u16string FX_UTF16Encode (WideStringView wsStr)
float StringToFloat (ByteStringView str)
float StringToFloat (WideStringView wsStr)
double StringToDouble (ByteStringView str)
double StringToDouble (WideStringView wsStr)
template<typename StrType>
std::vector< StrType > fxcrt::Split (const StrType &that, typename StrType::CharType ch)
template std::vector< ByteStringfxcrt::Split< ByteString > (const ByteString &that, ByteString::CharType ch)
template std::vector< WideStringfxcrt::Split< WideString > (const WideString &that, WideString::CharType ch)

Function Documentation

◆ FX_UTF16Encode()

std::u16string FX_UTF16Encode ( WideStringView wsStr)

Definition at line 76 of file fx_string.cpp.

◆ FX_UTF8Encode()

ByteString FX_UTF8Encode ( WideStringView wsStr)

Definition at line 68 of file fx_string.cpp.

◆ FXBSTR_ID()

uint32_t FXBSTR_ID ( uint8_t c1,
uint8_t c2,
uint8_t c3,
uint8_t c4 )
constexpr

Definition at line 19 of file fx_string.h.

Referenced by fxcrt::TEST().

Here is the caller graph for this function:

◆ StringToDouble() [1/2]

double StringToDouble ( ByteStringView str)

Definition at line 161 of file fx_string.cpp.

◆ StringToDouble() [2/2]

double StringToDouble ( WideStringView wsStr)

Definition at line 165 of file fx_string.cpp.

◆ StringToFloat() [1/2]

float StringToFloat ( ByteStringView str)

Definition at line 153 of file fx_string.cpp.

◆ StringToFloat() [2/2]

float StringToFloat ( WideStringView wsStr)

Definition at line 157 of file fx_string.cpp.