Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestCharsetConverter.cpp File Reference
#include "ServiceBroker.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "utils/CharsetConverter.h"
#include "utils/Utf8Utils.h"
#include <gtest/gtest.h>

Classes

class  TestCharsetConverter
 

Functions

 TEST_F (TestCharsetConverter, utf8ToW)
 
 TEST_F (TestCharsetConverter, subtitleCharsetToUtf8)
 
 TEST_F (TestCharsetConverter, utf8ToStringCharset_1)
 
 TEST_F (TestCharsetConverter, utf8ToStringCharset_2)
 
 TEST_F (TestCharsetConverter, utf8ToSystem)
 
 TEST_F (TestCharsetConverter, utf8To_ASCII)
 
 TEST_F (TestCharsetConverter, stringCharsetToUtf8)
 
 TEST_F (TestCharsetConverter, isValidUtf8_1)
 
 TEST_F (TestCharsetConverter, isValidUtf8_2)
 
 TEST_F (TestCharsetConverter, isValidUtf8_3)
 
 TEST_F (TestCharsetConverter, isValidUtf8_4)
 
 TEST_F (TestCharsetConverter, wToUTF8)
 
 TEST_F (TestCharsetConverter, utf8logicalToVisualBiDi)
 
 TEST_F (TestCharsetConverter, getCharsetLabels)
 
 TEST_F (TestCharsetConverter, getCharsetLabelByName)
 
 TEST_F (TestCharsetConverter, getCharsetNameByLabel)
 
 TEST_F (TestCharsetConverter, unknownToUTF8_1)
 
 TEST_F (TestCharsetConverter, unknownToUTF8_2)
 
 TEST_F (TestCharsetConverter, toW)
 
 TEST_F (TestCharsetConverter, fromW)
 

Function Documentation

◆ TEST_F() [1/20]

TEST_F ( TestCharsetConverter ,
fromW  )

◆ TEST_F() [2/20]

TEST_F ( TestCharsetConverter ,
getCharsetLabelByName  )

◆ TEST_F() [3/20]

TEST_F ( TestCharsetConverter ,
getCharsetLabels  )
Todo
Resolve correct input/output for this function

◆ TEST_F() [4/20]

TEST_F ( TestCharsetConverter ,
getCharsetNameByLabel  )

◆ TEST_F() [5/20]

TEST_F ( TestCharsetConverter ,
isValidUtf8_1  )

◆ TEST_F() [6/20]

TEST_F ( TestCharsetConverter ,
isValidUtf8_2  )

◆ TEST_F() [7/20]

TEST_F ( TestCharsetConverter ,
isValidUtf8_3  )

◆ TEST_F() [8/20]

TEST_F ( TestCharsetConverter ,
isValidUtf8_4  )

◆ TEST_F() [9/20]

TEST_F ( TestCharsetConverter ,
stringCharsetToUtf8  )
  • OSX has its own 'special' utf-8 charset which we use (see UTF8_SOURCE in CharsetConverter.cpp)

◆ TEST_F() [10/20]

TEST_F ( TestCharsetConverter ,
subtitleCharsetToUtf8  )

◆ TEST_F() [11/20]

TEST_F ( TestCharsetConverter ,
toW  )

◆ TEST_F() [12/20]

TEST_F ( TestCharsetConverter ,
unknownToUTF8_1  )

◆ TEST_F() [13/20]

TEST_F ( TestCharsetConverter ,
unknownToUTF8_2  )

◆ TEST_F() [14/20]

TEST_F ( TestCharsetConverter ,
utf8logicalToVisualBiDi  )

◆ TEST_F() [15/20]

TEST_F ( TestCharsetConverter ,
utf8To_ASCII  )

◆ TEST_F() [16/20]

TEST_F ( TestCharsetConverter ,
utf8ToStringCharset_1  )

◆ TEST_F() [17/20]

TEST_F ( TestCharsetConverter ,
utf8ToStringCharset_2  )

◆ TEST_F() [18/20]

TEST_F ( TestCharsetConverter ,
utf8ToSystem  )

◆ TEST_F() [19/20]

TEST_F ( TestCharsetConverter ,
utf8ToW  )

◆ TEST_F() [20/20]

TEST_F ( TestCharsetConverter ,
wToUTF8  )
Todo
Resolve correct input/output for this function