mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-329 update samples to latest APIs
X-SVN-Rev: 5518
This commit is contained in:
parent
5ee3959414
commit
48019cd625
6 changed files with 10 additions and 10 deletions
|
@ -368,7 +368,7 @@ print_month(UCalendar *c,
|
|||
/* ========== Generate the header containing the month and year */
|
||||
|
||||
/* Open a formatter with a month and year only pattern */
|
||||
dfmt = udat_openPattern(pat, len, 0, status);
|
||||
dfmt = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,NULL,0,pat, len,status);
|
||||
|
||||
/* Format the date */
|
||||
udat_format(dfmt, ucal_getMillis(c, status), s, BUF_SIZE, 0, status);
|
||||
|
@ -409,7 +409,7 @@ print_month(UCalendar *c,
|
|||
firstday -= fdow;
|
||||
|
||||
/* Open the formatter */
|
||||
nfmt = unum_open(UNUM_DECIMAL, 0, status);
|
||||
nfmt = unum_open(UNUM_DECIMAL, NULL,0,NULL,NULL, status);
|
||||
|
||||
/* Indent the correct number of spaces for the first week */
|
||||
current = firstday;
|
||||
|
@ -483,7 +483,7 @@ print_year(UCalendar *c,
|
|||
/* ========== Generate the header containing the year (only) */
|
||||
|
||||
/* Open a formatter with a month and year only pattern */
|
||||
dfmt = udat_openPattern(pat, len, 0, status);
|
||||
dfmt = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,NULL,0,pat, len, status);
|
||||
|
||||
/* Format the date */
|
||||
udat_format(dfmt, ucal_getMillis(left_cal, status), s, BUF_SIZE, 0, status);
|
||||
|
@ -513,7 +513,7 @@ print_year(UCalendar *c,
|
|||
ucal_setMillis(right_cal, ucal_getMillis(left_cal, status), status);
|
||||
|
||||
/* Open the formatter */
|
||||
nfmt = unum_open(UNUM_DECIMAL, 0, status);
|
||||
nfmt = unum_open(UNUM_DECIMAL,NULL, 0,NULL,NULL, status);
|
||||
|
||||
/* ========== Calculate and display the months, two at a time */
|
||||
for(i = 0; i < MONTH_COUNT - 1; i += 2) {
|
||||
|
|
|
@ -66,7 +66,7 @@ LINK32=link.exe
|
|||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
|
@ -74,7 +74,7 @@ BSC32=bscmake.exe
|
|||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 icuucd.lib icuind.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 icuucd.lib icuind.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ date(const UChar *tz,
|
|||
int32_t len = 0;
|
||||
UDateFormat *fmt;
|
||||
|
||||
fmt = udat_open(style, style, 0, tz, -1, status);
|
||||
fmt = udat_open(style, style, 0, tz, -1,NULL,0, status);
|
||||
len = udat_format(fmt, ucal_getNow(), 0, len, 0, status);
|
||||
if(*status == U_BUFFER_OVERFLOW_ERROR) {
|
||||
*status = U_ZERO_ERROR;
|
||||
|
|
|
@ -74,7 +74,7 @@ BSC32=bscmake.exe
|
|||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 icuucd.lib icuind.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 icuucd.lib icuind.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ BSC32=bscmake.exe
|
|||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 icuucd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib/debug"
|
||||
# ADD LINK32 icuucd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ BSC32=bscmake.exe
|
|||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 icutud.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib/debug" /libpath:"../../tools/toolutil/debug"
|
||||
# ADD LINK32 icutud.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"../../../lib/" /libpath:"../../tools/toolutil/debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue