ReactOS 0.4.15-dev-7994-gb388cb6
time_facets_test.cpp File Reference
#include "locale_test.h"
#include <locale>
#include <sstream>
#include <memory>
#include <stdexcept>
Include dependency graph for time_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 194 of file time_facets_test.cpp.

Function Documentation

◆ test_supported_locale()

static void test_supported_locale ( LocaleTest inst,
_Test  __test 
)
static

Definition at line 195 of file time_facets_test.cpp.

195 {
196 size_t n = sizeof(tested_locales) / sizeof(tested_locales[0]);
197 for (size_t i = 0; i < n; ++i) {
198 locale loc;
199# if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
200 try
201# endif
202 {
203 locale tmp(tested_locales[i]);
204 loc = tmp;
205 }
206# if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
207 catch (runtime_error const&) {
208 //This locale is not supported.
209 continue;
210 }
211# endif
212 CPPUNIT_MESSAGE( loc.name().c_str() );
213 (inst.*__test)(loc);
214
215 {
216 locale tmp(locale::classic(), tested_locales[i], locale::time);
217 loc = tmp;
218 }
219 (inst.*__test)(loc);
220
221 {
223 locale tmp0(locale::classic(), new time_put_facet(tested_locales[i]));
225 locale tmp1(tmp0, new time_get_facet(tested_locales[i]));
226 loc = tmp1;
227 }
228 (inst.*__test)(loc);
229 }
230}
Definition: _locale.h:75
string name() const
Definition: locale.cpp:388
static const locale &_STLP_CALL classic()
Definition: locale.cpp:404
#define CPPUNIT_MESSAGE(m)
Definition: cppunit_mini.h:223
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
static const char * tested_locales[]

Variable Documentation

◆ tested_locales

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

Definition at line 13 of file time_facets_test.cpp.

Referenced by test_supported_locale().