28 static void compress64_ (
const char16_t * input_it,
char* output_it);
42 static std::u16string
convert(
const char * str);
49 static void convert(
const char * str,
Size length, std::u16string & result);
52 static std::u16string
convert(
const std::string & str);
55 static std::unique_ptr<char16_t[]>
convertPtr(
const char * str);
58 static std::unique_ptr<char16_t[]>
convertPtr(
const std::string & str);
61 static std::string
convert(
const char16_t * str);
67 static bool isASCII(
const char16_t * chars,
const Size length);
75 static void appendASCII(
const char16_t * str,
const Size length, std::string & result);
Strict UTF-8/UTF-16 conversion and ASCII helpers for XML handlers.
Definition StringManager.h:25
static std::unique_ptr< char16_t[]> convertPtr(const char *str)
Transcode the supplied C string to a UTF-16 string pointer.
static void appendASCII(const char16_t *str, const Size length, std::string &result)
Transcodes the supplied char16_t* and appends it to the OpenMS String.
static void convert(const char *str, Size length, std::u16string &result)
Converts the UTF-8 sequence [str, str + length) to UTF-16 into result.
static bool isASCII(const char16_t *chars, const Size length)
Checks if supplied chars in char16_t* can be encoded with ASCII (i.e. the upper byte of each char is ...
static void compress64_(const char16_t *input_it, char *output_it)
Compresses eight 8x16bit Chars in char16_t* to 8x8bit Chars by cutting upper byte.
static std::string convert(const char16_t *str)
Transcode the supplied char16_t* to a std::string.
~StringManager()
Destructor.
static std::u16string convert(const std::string &str)
Transcode the supplied C++ string to a UTF-16 string.
static Size strLength(const char16_t *input_ptr)
Calculates the length of a char16_t* string using SIMDe.
static std::u16string convert(const char *str)
Transcode the supplied C string to a UTF-16 string.
StringManager()
Constructor.
static Int parseInt(const char16_t *str)
Parse an integer from a UTF-16 numeric string.
static std::unique_ptr< char16_t[]> convertPtr(const std::string &str)
Transcode the supplied C++ string to a UTF-16 string pointer.
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Initialization procedures.
Definition BayesianProteinInferenceAlgorithm.h:26