langdate.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "frontierconfig.h"
#include "error.h"
#include "ops.h"
#include "strings.h"
#include "frontierwindows.h"
#include "shell.h"
#include "shellhooks.h"
#include "oplist.h"
#include "lang.h"
#include "langinternal.h"
#include "langexternal.h"
#include "langsystem7.h"
#include "langipc.h"
#include "langwinipc.h"
#include "tablestructure.h"
#include "tableverbs.h"
#include "process.h"
#include "processinternal.h"
#include "kernelverbs.h"
#include "kernelverbdefs.h"
#include "timedate.h"

Include dependency graph for langdate.c:

Go to the source code of this file.

Defines

#define STR_P_MONTHLIST   BIGSTRING ("\x7A""{\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"}")
#define STR_P_DAYOFWEEKLIST   BIGSTRING ("\x4E""{\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"}")
#define STR_P_USERPREFSDATES   BIGSTRING ("\x10""user.prefs.dates")
#define STR_P_MONTHNAMES   BIGSTRING ("\x0A""monthNames")
#define STR_P_DAYNAMES   BIGSTRING ("\x08""dayNames")
#define STR_P_PREFS   BIGSTRING ("\x05""prefs")
#define STR_P_DATES   BIGSTRING ("\x05""dates")
#define STR_P_USER   BIGSTRING ("\x04""user")
#define STR_P_GMT   BIGSTRING ("\x04"" GMT")
#define STR_P_COMMA   BIGSTRING ("\x02"", ")
#define STR_P_MONTHNUMERROR   BIGSTRING ("\x40""Can't convert ^0 to a string because it is not between 1 and 12.")
#define STR_P_DAYNUMERROR   BIGSTRING ("\x3F""Can't convert ^0 to a string because it is not between 1 and 7.")

Functions

boolean datenetstandardstring (long localdate, tyvaluerecord *vreturn)
boolean datemonthtostring (long ix, tyvaluerecord *vreturn)
boolean datedayofweektostring (long ix, tyvaluerecord *vreturn)
static void explodeversion (bigstring bsv, unsigned long *mainversion, unsigned long *subversion)
boolean dateversionlessthan (bigstring bsv1, bigstring bsv2, tyvaluerecord *v)

Variables

static char * dayofweeknames [7] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}
static char * monthnames [12] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}


Define Documentation

#define STR_P_COMMA   BIGSTRING ("\x02"", ")
 

Definition at line 66 of file langdate.c.

Referenced by datenetstandardstring().

#define STR_P_DATES   BIGSTRING ("\x05""dates")
 

Definition at line 63 of file langdate.c.

Referenced by datedayofweektostring(), and datemonthtostring().

#define STR_P_DAYNAMES   BIGSTRING ("\x08""dayNames")
 

Definition at line 61 of file langdate.c.

Referenced by datedayofweektostring().

#define STR_P_DAYNUMERROR   BIGSTRING ("\x3F""Can't convert ^0 to a string because it is not between 1 and 7.")
 

Definition at line 70 of file langdate.c.

Referenced by datedayofweektostring().

#define STR_P_DAYOFWEEKLIST   BIGSTRING ("\x4E""{\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"}")
 

Definition at line 58 of file langdate.c.

Referenced by datedayofweektostring().

#define STR_P_GMT   BIGSTRING ("\x04"" GMT")
 

Definition at line 65 of file langdate.c.

Referenced by datenetstandardstring().

#define STR_P_MONTHLIST   BIGSTRING ("\x7A""{\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"}")
 

Definition at line 57 of file langdate.c.

Referenced by datemonthtostring().

#define STR_P_MONTHNAMES   BIGSTRING ("\x0A""monthNames")
 

Definition at line 60 of file langdate.c.

Referenced by datemonthtostring().

#define STR_P_MONTHNUMERROR   BIGSTRING ("\x40""Can't convert ^0 to a string because it is not between 1 and 12.")
 

Definition at line 69 of file langdate.c.

Referenced by datemonthtostring().

#define STR_P_PREFS   BIGSTRING ("\x05""prefs")
 

Definition at line 62 of file langdate.c.

Referenced by datedayofweektostring(), and datemonthtostring().

#define STR_P_USER   BIGSTRING ("\x04""user")
 

Definition at line 64 of file langdate.c.

Referenced by datedayofweektostring(), and datemonthtostring().

#define STR_P_USERPREFSDATES   BIGSTRING ("\x10""user.prefs.dates")
 

Definition at line 59 of file langdate.c.

Referenced by datedayofweektostring(), and datemonthtostring().


Function Documentation

boolean datedayofweektostring long  ix,
tyvaluerecord vreturn
 

Definition at line 244 of file langdate.c.

References bigstring, coercevalue(), copystring(), disablelangerror(), enablelangerror(), exemptfromtmpstack(), fl, h, hashtableassign(), hashtablelookup(), hnode, langerrormessage(), langfastaddresstotable(), langgetlistitem(), langsuretablevalue(), newtexthandle(), nil, numbertostring(), opdisposelist(), parsedialogstring(), roottable, setheapvalue(), STR_P_DATES, STR_P_DAYNAMES, STR_P_DAYNUMERROR, STR_P_DAYOFWEEKLIST, STR_P_PREFS, STR_P_USER, STR_P_USERPREFSDATES, and stringvaluetype.

Referenced by getdayofweekstring(), and langfunctionvalue().

Here is the call graph for this function:

boolean datemonthtostring long  ix,
tyvaluerecord vreturn
 

Definition at line 171 of file langdate.c.

References bigstring, coercevalue(), copystring(), disablelangerror(), enablelangerror(), exemptfromtmpstack(), fl, h, hashtableassign(), hashtablelookup(), hnode, langerrormessage(), langfastaddresstotable(), langgetlistitem(), langsuretablevalue(), newtexthandle(), nil, numbertostring(), opdisposelist(), parsedialogstring(), roottable, setheapvalue(), STR_P_DATES, STR_P_MONTHLIST, STR_P_MONTHNAMES, STR_P_MONTHNUMERROR, STR_P_PREFS, STR_P_USER, STR_P_USERPREFSDATES, and stringvaluetype.

Referenced by getmonthstring(), and langfunctionvalue().

Here is the call graph for this function:

boolean datenetstandardstring long  localdate,
tyvaluerecord vreturn
 

Definition at line 75 of file langdate.c.

References bigstring, closehandlestream(), dayofweeknames, disposehandlestream(), getcurrenttimezonebias(), insertchar(), monthnames, nil, numbertostring(), openhandlestream(), secondstodatetime(), secondstodayofweek(), setheapvalue(), STR_P_COMMA, STR_P_GMT, stringlength, stringvaluetype, writehandlestream(), writehandlestreamchar(), and writehandlestreamstring().

Referenced by langfunctionvalue(), opxmlbuildhead(), and webserverbuildresponse().

Here is the call graph for this function:

boolean dateversionlessthan bigstring  bsv1,
bigstring  bsv2,
tyvaluerecord v
 

Definition at line 452 of file langdate.c.

References explodeversion(), setbooleanvalue(), and v.

Referenced by langfunctionvalue(), and opxmltooutline().

Here is the call graph for this function:

static void explodeversion bigstring  bsv,
unsigned long mainversion,
unsigned long subversion
[static]
 

Definition at line 372 of file langdate.c.

References bigstring, i, midstring(), stringlength, stringtonumber(), and textnthword().

Referenced by dateversionlessthan().

Here is the call graph for this function:


Variable Documentation

char* dayofweeknames[7] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"} [static]
 

Definition at line 54 of file langdate.c.

Referenced by datenetstandardstring().

char* monthnames[12] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"} [static]
 

Definition at line 55 of file langdate.c.

Referenced by datenetstandardstring().


Generated on Fri Jun 2 23:49:19 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6