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

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

#include "xfa/fgas/crt/cfgas_stringformatter.h"
#include <iterator>
#include "build/build_config.h"
#include "core/fpdfapi/page/cpdf_pagemodule.h"
#include "core/fxcrt/cfx_datetime.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/fxgc_unittest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/scoped_set_tz.h"
#include "v8/include/cppgc/persistent.h"
#include "xfa/fxfa/parser/cxfa_localemgr.h"
+ Include dependency graph for cfgas_stringformatter_unittest.cpp:

Go to the source code of this file.

Classes

class  CFGAS_StringFormatterTest
 

Functions

 TEST_F (CFGAS_StringFormatterTest, DateFormat)
 
 TEST_F (CFGAS_StringFormatterTest, TimeFormat)
 
 TEST_F (CFGAS_StringFormatterTest, DateTimeFormat)
 
 TEST_F (CFGAS_StringFormatterTest, TimeDateFormat)
 
 TEST_F (CFGAS_StringFormatterTest, DateParse)
 
 TEST_F (CFGAS_StringFormatterTest, SplitFormatString)
 
 TEST_F (CFGAS_StringFormatterTest, NumParse)
 
 TEST_F (CFGAS_StringFormatterTest, NumFormat)
 
 TEST_F (CFGAS_StringFormatterTest, TextParse)
 
 TEST_F (CFGAS_StringFormatterTest, InvalidTextParse)
 
 TEST_F (CFGAS_StringFormatterTest, TextFormat)
 
 TEST_F (CFGAS_StringFormatterTest, NullParse)
 
 TEST_F (CFGAS_StringFormatterTest, NullFormat)
 
 TEST_F (CFGAS_StringFormatterTest, ZeroParse)
 
 TEST_F (CFGAS_StringFormatterTest, ZeroFormat)
 
 TEST_F (CFGAS_StringFormatterTest, GetCategory)
 

Function Documentation

◆ TEST_F() [1/16]

TEST_F ( CFGAS_StringFormatterTest ,
DateFormat  )

Definition at line 38 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kDate.

+ Here is the call graph for this function:

◆ TEST_F() [2/16]

TEST_F ( CFGAS_StringFormatterTest ,
DateParse  )

Definition at line 215 of file cfgas_stringformatter_unittest.cpp.

References CFX_DateTime::CFX_DateTime(), CFGAS_StringFormatter::kDate, and CFGAS_StringFormatter::ParseDateTime().

+ Here is the call graph for this function:

◆ TEST_F() [3/16]

TEST_F ( CFGAS_StringFormatterTest ,
DateTimeFormat  )

Definition at line 155 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kDateTime.

+ Here is the call graph for this function:

◆ TEST_F() [4/16]

◆ TEST_F() [5/16]

TEST_F ( CFGAS_StringFormatterTest ,
InvalidTextParse  )

Definition at line 629 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::ParseText().

+ Here is the call graph for this function:

◆ TEST_F() [6/16]

TEST_F ( CFGAS_StringFormatterTest ,
NullFormat  )

Definition at line 675 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), and CFGAS_StringFormatter::FormatNull().

+ Here is the call graph for this function:

◆ TEST_F() [7/16]

TEST_F ( CFGAS_StringFormatterTest ,
NullParse  )

Definition at line 660 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::ParseNull().

+ Here is the call graph for this function:

◆ TEST_F() [8/16]

TEST_F ( CFGAS_StringFormatterTest ,
NumFormat  )

Definition at line 474 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), fxcrt::WideString::c_str(), and CFGAS_StringFormatter::FormatNum().

+ Here is the call graph for this function:

◆ TEST_F() [9/16]

TEST_F ( CFGAS_StringFormatterTest ,
NumParse  )

Definition at line 326 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), fxcrt::WideString::c_str(), and CFGAS_StringFormatter::ParseNum().

+ Here is the call graph for this function:

◆ TEST_F() [10/16]

TEST_F ( CFGAS_StringFormatterTest ,
SplitFormatString  )

Definition at line 305 of file cfgas_stringformatter_unittest.cpp.

◆ TEST_F() [11/16]

TEST_F ( CFGAS_StringFormatterTest ,
TextFormat  )

Definition at line 636 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), and CFGAS_StringFormatter::FormatText().

+ Here is the call graph for this function:

◆ TEST_F() [12/16]

TEST_F ( CFGAS_StringFormatterTest ,
TextParse  )

Definition at line 605 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), and CFGAS_StringFormatter::ParseText().

+ Here is the call graph for this function:

◆ TEST_F() [13/16]

TEST_F ( CFGAS_StringFormatterTest ,
TimeDateFormat  )

Definition at line 186 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kTimeDate.

+ Here is the call graph for this function:

◆ TEST_F() [14/16]

TEST_F ( CFGAS_StringFormatterTest ,
TimeFormat  )

Definition at line 103 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kTime.

+ Here is the call graph for this function:

◆ TEST_F() [15/16]

TEST_F ( CFGAS_StringFormatterTest ,
ZeroFormat  )

Definition at line 701 of file cfgas_stringformatter_unittest.cpp.

References fxcrt::WideString::c_str(), and CFGAS_StringFormatter::FormatZero().

+ Here is the call graph for this function:

◆ TEST_F() [16/16]

TEST_F ( CFGAS_StringFormatterTest ,
ZeroParse  )

Definition at line 689 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::ParseZero().

+ Here is the call graph for this function: