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

Go to the source code of this file.

Classes

struct  ref_monetary
 

Typedefs

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

Functions

static void test_supported_locale (LocaleTest &inst, _Test __test)
 

Variables

static const ref_monetary tested_locales []
 

Typedef Documentation

◆ _Test

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

Definition at line 417 of file money_facets_test.cpp.

Function Documentation

◆ test_supported_locale()

static void test_supported_locale ( LocaleTest inst,
_Test  __test 
)
static

Definition at line 418 of file money_facets_test.cpp.

418  {
419  size_t n = sizeof(tested_locales) / sizeof(tested_locales[0]);
420  for (size_t i = 0; i < n; ++i) {
421  locale loc;
422 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
423  try
424 # endif
425  {
426  locale tmp(tested_locales[i].name);
427  loc = tmp;
428  }
429 # if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
430  catch (runtime_error const&) {
431  //This locale is not supported.
432  continue;
433  }
434 # endif
435  CPPUNIT_MESSAGE( loc.name().c_str() );
436  (inst.*__test)(loc, tested_locales + i);
437 
438  {
439  locale tmp(locale::classic(), tested_locales[i].name, locale::monetary);
440  loc = tmp;
441  }
442  (inst.*__test)(loc, tested_locales + i);
443 
444  {
447  loc = tmp1;
448  }
449  (inst.*__test)(loc, tested_locales + i);
450  }
451 }
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 ref_monetary tested_locales[]
string name() const
Definition: locale.cpp:388
Definition: name.c:38
#define CPPUNIT_MESSAGE(m)
Definition: cppunit_mini.h:223

Referenced by LocaleTest::money_put_get(), and LocaleTest::money_put_X_bug().

Variable Documentation

◆ tested_locales

const ref_monetary tested_locales[]
static
Initial value:
= {
{ "fr_FR", "EUR ", "FRF ", "", "", ",",
" " },
{ "ru_RU.koi8r", "RUB ", "RUR ", "", "\xd2\xd5\xc2", ".", " " },
{ "en_GB", "GBP ", "", "\xa3", "", ".", "," },
{ "en_US", "USD ", "", "$", "", ".", "," },
{ "C", "", "", "", "", " ", " " },
}

Definition at line 22 of file money_facets_test.cpp.

Referenced by LocaleTest::_get_ref_monetary(), and test_supported_locale().