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

Go to the source code of this file.

Typedefs

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

Functions

static void test_supported_locale (LocaleTest &inst, _Test __test)
 

Variables

static const chartested_locales []
 

Typedef Documentation

◆ _Test

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

Definition at line 318 of file ctype_facets_test.cpp.

Function Documentation

◆ test_supported_locale()

static void test_supported_locale ( LocaleTest inst,
_Test  __test 
)
static

Definition at line 319 of file ctype_facets_test.cpp.

319  {
320  size_t n = sizeof(tested_locales) / sizeof(tested_locales[0]);
321  for (size_t i = 0; i < n; ++i) {
322  locale loc;
323 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
324  try
325 # endif
326  {
327  locale tmp(tested_locales[i]);
328  loc = tmp;
329  }
330 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
331  catch (runtime_error const&) {
332  //This locale is not supported.
333  continue;
334  }
335 # endif
336 
337  CPPUNIT_MESSAGE( loc.name().c_str() );
338  (inst.*__test)(loc);
339 
340  {
341  locale tmp(locale::classic(), tested_locales[i], locale::ctype);
342  loc = tmp;
343  }
344  (inst.*__test)(loc);
345 
346  {
348 #ifndef _STLP_NO_WCHAR_T
349  locale tmp0(tmp, new ctype_byname<wchar_t>(tested_locales[i]));
350  tmp = tmp0;
351 #endif
352  loc = tmp;
353  }
354  (inst.*__test)(loc);
355  }
356 }
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 locale &_STLP_CALL classic()
Definition: locale.cpp:404
static const char * tested_locales[]
string name() const
Definition: locale.cpp:388
#define CPPUNIT_MESSAGE(m)
Definition: cppunit_mini.h:223

Referenced by LocaleTest::ctype_facet().

Variable Documentation

◆ tested_locales

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

Definition at line 11 of file ctype_facets_test.cpp.

Referenced by test_supported_locale().