• Home
  • History
  • Annotate
  • only in /external/chromium_org/third_party/icu/source/samples/numfmt/
NameDateSize

..12-Mar-20154 KiB

capi.c12-Mar-20152.4 KiB

main.cpp12-Mar-20158.9 KiB

Makefile12-Mar-2015500

numfmt.vcxproj12-Mar-201513.5 KiB

numfmt.vcxproj.filters12-Mar-20151.2 KiB

readme.txt12-Mar-20152.2 KiB

util.cpp12-Mar-20153.5 KiB

util.h12-Mar-2015717

readme.txt

1Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved.
2numfmt: a sample program which displays number formatting in C and C++
3
4This sample demonstrates
5         Formatting a number
6         Outputting text in the default codepage to the console
7         
8Files:
9    main.cpp                   Main source file in C++
10    capi.c                     C version 
11    util.cpp                   formatted output convenience implementation
12    util.h                     formatted output convenience header
13    numfmt.sln                 Windows MSVC workspace.  Double-click this to get started.
14    numfmt.vcproj              Windows MSVC project file
15
16To Build on Windows
17    1.  Install and build ICU
18    2.  In MSVC, open the workspace file icu\samples\numfmt\numfmt.sln
19    3.  Choose a Debug or Release build.
20    4.  Build.
21	
22To Run on Windows
23    1.  Start a command shell window
24    2.  Add ICU's bin directory to the path, e.g.
25            set PATH=c:\icu\bin;%PATH%
26        (Use the path to where ever ICU is on your system.)
27    3.  cd into the numfmt directory, e.g.
28            cd c:\icu\source\samples\numfmt\debug
29    4.  Run it
30            numfmt
31
32To Build on Unixes
33    1.  Build ICU.  
34        Specify an ICU install directory when running configure,
35        using the --prefix option.  The steps to build ICU will look something
36        like this:
37           cd <icu directory>/source
38           runConfigureICU <platform-name> --prefix <icu install directory> [other options]
39           gmake all
40           
41    2.  Install ICU, 
42           gmake install
43 
44    3.  Compile
45           cd <icu directory>/source/samples/numfmt
46           gmake ICU_PREFIX=<icu install directory)
47           
48 To Run on Unixes
49           cd <icu directory>/source/samples/numfmt
50           
51           gmake ICU_PREFIX=<icu install directory>  check
52               -or- 
53
54           export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
55           numfmt
56           
57 Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
58        If in doubt, run the sample using "gmake check", and note the name of
59        the variable that is used there.  LD_LIBRARY_PATH is the correct name
60        for Linux and Solaris.
61
62