Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions | Variables
22.locale.time.put.cpp File Reference
#include <ios>
#include <locale>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cassert>
#include <rw_driver.h>
#include <rw_environ.h>
#include <rw_file.h>
#include <rw_locale.h>
#include <rw_printf.h>
#include <rw_valcmp.h>
Include dependency graph for 22.locale.time.put.cpp:

Go to the source code of this file.

Data Structures

struct  Ios< charT >
 
struct  Buffer< charT >
 
struct  time_data
 
struct  time_data::era_data
 

Macros

#define SLASH   "\\"
 
#define T   __LINE__, charT (), tname, mktm
 
#define TEST   do_test
 

Functions

void set_TZ (const char *str)
 
const char * narrow (char *dst, const char *src)
 
const char * widen (char *dst, const char *src)
 
const char * narrow (char *dst, const wchar_t *src)
 
const wchar_t * widen (wchar_t *dst, const char *src)
 
std::size_t rw_strftime (char *buf, std::size_t bufsize, const char *pat, const std::tm *tmb)
 
std::size_t rw_strftime (wchar_t *wbuf, std::size_t bufsize, const wchar_t *wpat, const std::tm *tmb)
 
template<class charT >
void do_test (int lineno, charT, const char *tname, const std::tm *tmb, const char *pat, int flags, int width, char fill, const char *str)
 
const char * make_LC_TIME (const time_data *td)
 
const std::tm * mktm (int sec=0, int min=0, int hour=0, int mday=1, int mon=0, int year=0, int wday=0, int yday=0, int isdst=0, long gmtoff=0, const char *zone=0)
 
template<class charT >
void test_POSIX (charT, const char *tname)
 
template<class charT >
void test_user (charT, const char *tname)
 
int main (int argc, char *argv[])
 

Variables

const char * locale_root
 

Macro Definition Documentation

◆ SLASH

#define SLASH   "\\"

22.time.put.cpp - tests exercising lib.locale.time.put

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2002-2008 Rogue Wave Software, Inc.

Definition at line 51 of file 22.locale.time.put.cpp.

◆ T

#define T   __LINE__, charT (), tname, mktm

Definition at line 747 of file 22.locale.time.put.cpp.

◆ TEST

#define TEST   do_test

Definition at line 748 of file 22.locale.time.put.cpp.

Function Documentation

◆ do_test()

template<class charT >
void do_test ( int  lineno,
charT  ,
const char *  tname,
const std::tm *  tmb,
const char *  pat,
int  flags,
int  width,
char  fill,
const char *  str 
)

Definition at line 348 of file 22.locale.time.put.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 2063 of file 22.locale.time.put.cpp.

◆ make_LC_TIME()

const char * make_LC_TIME ( const time_data *  td)

Definition at line 500 of file 22.locale.time.put.cpp.

◆ mktm()

const std::tm * mktm ( int  sec = 0,
int  min = 0,
int  hour = 0,
int  mday = 1,
int  mon = 0,
int  year = 0,
int  wday = 0,
int  yday = 0,
int  isdst = 0,
long  gmtoff = 0,
const char *  zone = 0 
)

Definition at line 679 of file 22.locale.time.put.cpp.

◆ narrow() [1/2]

const char * narrow ( char *  dst,
const char *  src 
)

Definition at line 75 of file 22.locale.time.put.cpp.

◆ narrow() [2/2]

const char * narrow ( char *  dst,
const wchar_t *  src 
)

Definition at line 95 of file 22.locale.time.put.cpp.

◆ rw_strftime() [1/2]

std::size_t rw_strftime ( char *  buf,
std::size_t  bufsize,
const char *  pat,
const std::tm *  tmb 
)

Definition at line 137 of file 22.locale.time.put.cpp.

◆ rw_strftime() [2/2]

std::size_t rw_strftime ( wchar_t *  wbuf,
std::size_t  bufsize,
const wchar_t *  wpat,
const std::tm *  tmb 
)

Definition at line 296 of file 22.locale.time.put.cpp.

◆ set_TZ()

void set_TZ ( const char *  str)
inline

Definition at line 64 of file 22.locale.time.put.cpp.

◆ test_POSIX()

template<class charT >
void test_POSIX ( charT  ,
const char *  tname 
)

Definition at line 752 of file 22.locale.time.put.cpp.

◆ test_user()

template<class charT >
void test_user ( charT  ,
const char *  tname 
)

Definition at line 1808 of file 22.locale.time.put.cpp.

◆ widen() [1/2]

const char * widen ( char *  dst,
const char *  src 
)

Definition at line 85 of file 22.locale.time.put.cpp.

◆ widen() [2/2]

const wchar_t * widen ( wchar_t *  dst,
const char *  src 
)

Definition at line 116 of file 22.locale.time.put.cpp.

Variable Documentation

◆ locale_root

const char* locale_root

Definition at line 57 of file 22.locale.time.put.cpp.