メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

strptime.c の解説

#include <ctype.h>
#include <limits.h>
#include <string.h>
#include <time.h>

strptime.cのインクルード依存関係図

Include dependency graph

ソースコードを見る。

マクロ定義

#define __P(args)   ()
#define localtime_r   my_localtime_r
#define match_char(ch1, ch2)   if (ch1 != ch2) return NULL
#define match_string(cs1, s2)   (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1))
#define get_number(from, to, n)
#define get_alt_number(from, to, n)
#define recursive(new_fmt)
#define HERE_D_T_FMT   "%a %b %e %H:%M:%S %Y"
#define HERE_D_FMT   "%m/%d/%y"
#define HERE_AM_STR   "AM"
#define HERE_PM_STR   "PM"
#define HERE_T_FMT_AMPM   "%I:%M:%S %p"
#define HERE_T_FMT   "%H:%M:%S"
#define __isleap(year)   ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))

Enum

enum  locale_status { not, loc, raw }

変数

tmtp
const unsigned short int __mon_yday [2][13]
const char * format
tm * tm
enum locale_statusdecided


マクロ定義の解説

#define __isleap year       ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
 

strptime.c223 行で定義されています。

#define __P args       ()
 

strptime.c49 行で定義されています。

#define get_alt_number from,
to,
 
 

値:

\
  get_number(from, to, n)

#define get_number from,
to,
 
 

値:

do {                                                                          \
    int __n = n;                                                              \
    val = 0;                                                                  \
    while (*rp == ' ')                                                        \
      ++rp;                                                                   \
    if (*rp < '0' || *rp > '9')                                               \
      return NULL;                                                            \
    do {                                                                      \
      val *= 10;                                                              \
      val += *rp++ - '0';                                                     \
    } while (--__n > 0 && val * 10 <= to && *rp >= '0' && *rp <= '9');        \
    if (val < from || val > to)                                               \
      return NULL;                                                            \
  } while (0)

#define HERE_AM_STR   "AM"
 

strptime.c202 行で定義されています。

#define HERE_D_FMT   "%m/%d/%y"
 

strptime.c201 行で定義されています。

#define HERE_D_T_FMT   "%a %b %e %H:%M:%S %Y"
 

strptime.c200 行で定義されています。

#define HERE_PM_STR   "PM"
 

strptime.c203 行で定義されています。

#define HERE_T_FMT   "%H:%M:%S"
 

strptime.c205 行で定義されています。

#define HERE_T_FMT_AMPM   "%I:%M:%S %p"
 

strptime.c204 行で定義されています。

#define localtime_r   my_localtime_r
 

strptime.c59 行で定義されています。

#define match_char ch1,
ch2       if (ch1 != ch2) return NULL
 

#define match_string cs1,
s2       (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1))
 

#define recursive new_fmt   
 

値:

(*(new_fmt) != '\0'                                                           \
   && (rp = strptime_internal (rp, (new_fmt), tm, decided)) != NULL)


Enum の解説

enum locale_status
 

Enum 値:
not 
loc 
raw 

strptime.c217 行で定義されています。


変数の解説

const unsigned short int __mon_yday[2][13]
 

初期値:

  {
    
    { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
    
    { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }
  }

strptime.c207 行で定義されています。

enum locale_status* decided
 

strptime.c268 行で定義されています。

const char* format
 

strptime.c863 行で定義されています。

struct tm * tm
 

strptime.c864 行で定義されています。

呼出 octave_base_tm::init(), oct_strptime(), octave_base_tm::octave_base_tm(), octave_time::octave_time(), ODESSA::ODESSA(), octave_base_tm::operator=(), と octave_base_tm::strftime().

struct tm* tp
 

strptime.c64 行で定義されています。


Wed Dec 29 13:02:52 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送