ReactOS  0.4.14-dev-1256-g2125fec
locale_test.cpp File Reference
#include "locale_test.h"
#include <sstream>
#include <locale>
#include <stdexcept>
Include dependency graph for locale_test.cpp:

Go to the source code of this file.

Classes

class  dummy_facet
 

Typedefs

typedef void(LocaleTest::* _Test) (const locale &)
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (LocaleTest)
 
static void test_supported_locale (LocaleTest &inst, _Test __test)
 

Variables

static const chartested_locales []
 
static locale global_loc
 
static locale other_loc ("")
 

Typedef Documentation

◆ _Test

typedef void(LocaleTest::* _Test) (const locale &)

Definition at line 29 of file locale_test.cpp.

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( LocaleTest  )

◆ test_supported_locale()

static void test_supported_locale ( LocaleTest inst,
_Test  __test 
)
static

Definition at line 30 of file locale_test.cpp.

30  {
31  size_t n = sizeof(tested_locales) / sizeof(tested_locales[0]);
32  for (size_t i = 0; i < n; ++i) {
33  locale loc;
34 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
35  try {
36 # endif
37  locale tmp(tested_locales[i]);
38  loc = tmp;
39 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
40  }
41  catch (runtime_error const&) {
42  //This locale is not supported.
43  continue;
44  }
45 # endif
46  CPPUNIT_MESSAGE( loc.name().c_str() );
47  (inst.*__test)(loc);
48  }
49 }
GLdouble n
Definition: glext.h:7729
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
Definition: _locale.h:75
static const char * tested_locales[]
Definition: locale_test.cpp:12
string name() const
Definition: locale.cpp:388
#define CPPUNIT_MESSAGE(m)
Definition: cppunit_mini.h:223

Referenced by LocaleTest::locale_init_problem().

Variable Documentation

◆ global_loc

locale global_loc
static

Definition at line 166 of file locale_test.cpp.

Referenced by LocaleTest::_locale_init_problem().

◆ other_loc

locale other_loc("")
static

◆ tested_locales

const char* tested_locales[]
static
Initial value:
= {
"fr_FR",
"ru_RU.koi8r",
"en_GB",
"en_US",
"",
"C"
}

Definition at line 12 of file locale_test.cpp.

Referenced by test_supported_locale().