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_unittest.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include <limits>
#include "build/build_config.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/utf16.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/base/containers/span.h"
+ Include dependency graph for fx_string_unittest.cpp:

Go to the source code of this file.

Functions

char * TerminatedFloatToString (float value, pdfium::span< char > buf)
 
char * TerminatedDoubleToString (double value, pdfium::span< char > buf)
 
 TEST (fxstring, FXUTF8Encode)
 
 TEST (fxstring, FXUTF8EncodeSupplementary)
 
 TEST (fxstring, ByteStringToFloat)
 
 TEST (fxstring, WideStringToFloat)
 
 TEST (fxstring, FloatToString)
 
 TEST (fxstring, ByteStringToDouble)
 
 TEST (fxstring, WideStringToDouble)
 
 TEST (fxstring, DoubleToString)
 
 TEST (fxstring, SplitByteString)
 
 TEST (fxstring, SplitByteStringView)
 
 TEST (fxstring, SplitWideString)
 
 TEST (fxstring, SplitWideStringView)
 
 TEST (fxstring, ByteStringSplitEfficiency)
 
 TEST (fxstring, ByteStringViewSplitEfficiency)
 
 TEST (fxstring, WideStringSplitEfficiency)
 
 TEST (fxstring, WideStringViewSplitEfficiency)
 

Function Documentation

◆ TerminatedDoubleToString()

char * TerminatedDoubleToString ( double value,
pdfium::span< char > buf )

Definition at line 19 of file fx_string_unittest.cpp.

◆ TerminatedFloatToString()

char * TerminatedFloatToString ( float value,
pdfium::span< char > buf )

Definition at line 13 of file fx_string_unittest.cpp.

◆ TEST() [1/16]

TEST ( fxstring ,
ByteStringSplitEfficiency  )

Definition at line 431 of file fx_string_unittest.cpp.

◆ TEST() [2/16]

TEST ( fxstring ,
ByteStringToDouble  )

Definition at line 151 of file fx_string_unittest.cpp.

◆ TEST() [3/16]

TEST ( fxstring ,
ByteStringToFloat  )

Definition at line 67 of file fx_string_unittest.cpp.

◆ TEST() [4/16]

TEST ( fxstring ,
ByteStringViewSplitEfficiency  )

Definition at line 441 of file fx_string_unittest.cpp.

◆ TEST() [5/16]

TEST ( fxstring ,
DoubleToString  )

Definition at line 197 of file fx_string_unittest.cpp.

◆ TEST() [6/16]

TEST ( fxstring ,
FloatToString  )

Definition at line 113 of file fx_string_unittest.cpp.

◆ TEST() [7/16]

TEST ( fxstring ,
FXUTF8Encode  )

Definition at line 25 of file fx_string_unittest.cpp.

◆ TEST() [8/16]

TEST ( fxstring ,
FXUTF8EncodeSupplementary  )

Definition at line 46 of file fx_string_unittest.cpp.

◆ TEST() [9/16]

TEST ( fxstring ,
SplitByteString  )

Definition at line 235 of file fx_string_unittest.cpp.

References fxcrt::ByteString::ByteString().

+ Here is the call graph for this function:

◆ TEST() [10/16]

TEST ( fxstring ,
SplitByteStringView  )

Definition at line 284 of file fx_string_unittest.cpp.

◆ TEST() [11/16]

TEST ( fxstring ,
SplitWideString  )

Definition at line 333 of file fx_string_unittest.cpp.

References fxcrt::WideString::WideString().

+ Here is the call graph for this function:

◆ TEST() [12/16]

TEST ( fxstring ,
SplitWideStringView  )

Definition at line 382 of file fx_string_unittest.cpp.

◆ TEST() [13/16]

TEST ( fxstring ,
WideStringSplitEfficiency  )

Definition at line 451 of file fx_string_unittest.cpp.

◆ TEST() [14/16]

TEST ( fxstring ,
WideStringToDouble  )

Definition at line 174 of file fx_string_unittest.cpp.

◆ TEST() [15/16]

TEST ( fxstring ,
WideStringToFloat  )

Definition at line 90 of file fx_string_unittest.cpp.

◆ TEST() [16/16]

TEST ( fxstring ,
WideStringViewSplitEfficiency  )

Definition at line 461 of file fx_string_unittest.cpp.