• Home
  • History
  • Annotate
  • only in /external/icu/icu4c/source/samples/case/
NameDateSize

..05-Nov-20144 KiB

case.cpp05-Nov-20142.5 KiB

case.vcxproj05-Nov-201413.4 KiB

case.vcxproj.filters05-Nov-2014990

Makefile05-Nov-2014517

readme.txt05-Nov-20142 KiB

ucase.c05-Nov-20143.1 KiB

readme.txt

1Copyright (c) 2003-2005, International Business Machines Corporation and others. All Rights Reserved.
2case: case mapping
3
4This sample demonstrates
5         Using ICU to convert between different cases
6
7         
8Files:
9    case.cpp      Main source file in C++
10    ucase.c       Main source file in C
11    case.sln      Windows MSVC workspace.  Double-click this to get started.
12    case.vcproj   Windows MSVC project file
13
14To Build case on Windows
15    1.  Install and build ICU
16    2.  In MSVC, open the solution file icu\samples\case\case.sln
17        (or, use the workspace All, in icu\samples\all\all.sln )
18    3.  Choose a Debug or Release build.
19    4.  Build.
20	
21To Run on Windows
22    1.  Start a command shell window
23    2.  Add ICU's bin directory to the path, e.g.
24            set PATH=c:\icu\bin;%PATH%
25        (Use the path to where ever ICU is on your system.)
26    3.  cd into the case directory, e.g.
27            cd c:\icu\source\samples\case\debug
28    4.  Run it
29            case
30
31To Build on Unixes
32    1.  Build ICU.  
33        Specify an ICU install directory when running configure,
34        using the --prefix option.  The steps to build ICU will look something
35        like this:
36           cd <icu directory>/source
37           runConfigureICU <platform-name> --prefix <icu install directory> [other options]
38           gmake all
39           
40    2.  Install ICU, 
41           gmake install
42 
43    3.  Compile
44           cd <icu directory>/source/samples/case
45           gmake ICU_PREFIX=<icu install directory)
46           
47 To Run on Unixes
48           cd <icu directory>/source/samples/case
49           
50           gmake ICU_PREFIX=<icu install directory>  check
51               -or- 
52
53           export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
54           case
55           
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