Imported Upstream version 58.1
[platform/upstream/icu.git] / source / samples / props / readme.txt
1 Copyright (C) 2016 and later: Unicode, Inc. and others.
2 License & terms of use: http://www.unicode.org/copyright.html#License
3
4 Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved.
5 props: Unicode Character Properties
6
7 This sample demonstrates
8          Using ICU to determine the properties of Unicode characters
9
10          
11 Files:
12     props.cpp      Main source file in C++
13     props.sln      Windows MSVC workspace.  Double-click this to get started.
14     props.vcproj   Windows MSVC project file
15
16 To Build props on Windows
17     1.  Install and build ICU
18     2.  In MSVC, open the workspace file icu\samples\props\props.sln
19     3.  Choose a Debug or Release build.
20     4.  Build.
21         
22 To 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 props directory, e.g.
28             cd c:\icu\source\samples\props\debug
29     4.  Run it
30             props
31
32 To 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/props
46            gmake ICU_PREFIX=<icu install directory)
47            
48  To Run on Unixes
49            cd <icu directory>/source/samples/props
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            props
56            
57            
58  Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
59         If in doubt, run the sample using "gmake check", and note the name of
60         the variable that is used there.  LD_LIBRARY_PATH is the correct name
61         for Linux and Solaris.
62