You.i Engine
YiStringParsing.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_STRING_PARSING_H_
3 #define _YI_STRING_PARSING_H_
4 
5 #include "utility/YiStringView.h"
6 
16 {
17 public:
24  {
27  };
28 
42  static bool ParseBooleanValue(CYIStringView value, bool *pError = nullptr, bool logParsingErrors = true);
43 
57  static float ParseFloatValue(CYIStringView value, bool *pError = nullptr, bool logParsingErrors = true);
58 
72  static uint32_t ParseTimeValue(CYIStringView value, bool *pError = nullptr, bool logParsingErrors = true);
73 
89  static float ParseLengthValue(CYIStringView length, bool *pError = nullptr, bool logParsingErrors = true);
90 
103 };
104 
107 #endif // _YI_STRING_PARSING_H
static NumberWithSuffix SplitSuffixFromNumber(CYIStringView input)
static float ParseFloatValue(CYIStringView value, bool *pError=nullptr, bool logParsingErrors=true)
Definition: YiStringParsing.h:23
This class contains string parsing functions.
Definition: YiStringParsing.h:15
static float ParseLengthValue(CYIStringView length, bool *pError=nullptr, bool logParsingErrors=true)
CYIStringView number
Definition: YiStringParsing.h:25
CYIStringView suffix
Definition: YiStringParsing.h:26
static bool ParseBooleanValue(CYIStringView value, bool *pError=nullptr, bool logParsingErrors=true)
static uint32_t ParseTimeValue(CYIStringView value, bool *pError=nullptr, bool logParsingErrors=true)
A lightweight wrapper around a sequence of Unicode characters.
Definition: YiStringView.h:57