]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/props/readme.txt
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / samples / props / readme.txt
1 Copyright (c) 2002, International Business Machines Corporation and others. All Rights Reserved.
2 props: Unicode Character Properties
3
4 This sample demonstrates
5 Using ICU to determine the properties of Unicode characters
6
7
8 Files:
9 props.cpp Main source file in C++
10 props.dsw Windows MSVC workspace. Double-click this to get started.
11 props.dsp Windows MSVC project file
12
13 To Build props on Windows
14 1. Install and build ICU
15 2. In MSVC, open the workspace file icu\samples\props\props.dsw
16 3. Choose a Debug or Release build.
17 4. Build.
18
19 To Run on Windows
20 1. Start a command shell window
21 2. Add ICU's bin directory to the path, e.g.
22 set PATH=c:\icu\bin;%PATH%
23 (Use the path to where ever ICU is on your system.)
24 3. cd into the props directory, e.g.
25 cd c:\icu\source\samples\props\debug
26 4. Run it
27 props
28
29 To Build on Unixes
30 1. Build ICU.
31 Specify an ICU install directory when running configure,
32 using the --prefix option. The steps to build ICU will look something
33 like this:
34 cd <icu directory>/source
35 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
36 gmake all
37
38 2. Install ICU,
39 gmake install
40
41 3. Compile
42 cd <icu directory>/source/samples/props
43 gmake ICU_PREFIX=<icu install directory)
44
45 To Run on Unixes
46 cd <icu directory>/source/samples/props
47
48 gmake ICU_PREFIX=<icu install directory> check
49 -or-
50
51 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
52 props
53
54
55 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
56 If in doubt, run the sample using "gmake check", and note the name of
57 the variable that is used there. LD_LIBRARY_PATH is the correct name
58 for Linux and Solaris.
59