readme.txt
1Copyright (C) 2016 and later: Unicode, Inc. and others.
2License & terms of use: http://www.unicode.org/copyright.html#License
3
4Copyright (c) 2003-2005, International Business Machines Corporation and others. All Rights Reserved.
5case: case mapping
6
7This sample demonstrates
8 Using ICU to convert between different cases
9
10
11Files:
12 case.cpp Main source file in C++
13 ucase.c Main source file in C
14 case.sln Windows MSVC workspace. Double-click this to get started.
15 case.vcproj Windows MSVC project file
16
17To Build case on Windows
18 1. Install and build ICU
19 2. In MSVC, open the solution file icu\samples\case\case.sln
20 (or, use the workspace All, in icu\samples\all\all.sln )
21 3. Choose a Debug or Release build.
22 4. Build.
23
24To Run on Windows
25 1. Start a command shell window
26 2. Add ICU's bin directory to the path, e.g.
27 set PATH=c:\icu\bin;%PATH%
28 (Use the path to where ever ICU is on your system.)
29 3. cd into the case directory, e.g.
30 cd c:\icu\source\samples\case\debug
31 4. Run it
32 case
33
34To Build on Unixes
35 1. Build ICU.
36 Specify an ICU install directory when running configure,
37 using the --prefix option. The steps to build ICU will look something
38 like this:
39 cd <icu directory>/source
40 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
41 gmake all
42
43 2. Install ICU,
44 gmake install
45
46 3. Compile
47 cd <icu directory>/source/samples/case
48 gmake ICU_PREFIX=<icu install directory)
49
50 To Run on Unixes
51 cd <icu directory>/source/samples/case
52
53 gmake ICU_PREFIX=<icu install directory> check
54 -or-
55
56 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
57 case
58
59
60 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
61 If in doubt, run the sample using "gmake check", and note the name of
62 the variable that is used there. LD_LIBRARY_PATH is the correct name
63 for Linux and Solaris.
64
65