1 Copyright (C) 2016 and later: Unicode, Inc. and others.
2 License & terms of use: http://www.unicode.org/copyright.html#License
4 Copyright (c) 2003-2005, International Business Machines Corporation and others. All Rights Reserved.
7 This sample demonstrates
8 Using ICU to convert between different cases
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
17 To 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.
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
36 Specify an ICU install directory when running configure,
37 using the --prefix option. The steps to build ICU will look something
39 cd <icu directory>/source
40 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
47 cd <icu directory>/source/samples/case
48 gmake ICU_PREFIX=<icu install directory)
51 cd <icu directory>/source/samples/case
53 gmake ICU_PREFIX=<icu install directory> check
56 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
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.