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