• Home
Name Date Size #Lines LOC

..--

break/03-May-2024-642524

cal/03-May-2024-1,555873

case/03-May-2024-529423

citer/03-May-2024-496404

coll/03-May-2024-615536

csdet/03-May-2024-374312

date/03-May-2024-872682

datecal/03-May-2024-14988

datefmt/03-May-2024-892664

dtitvfmtsample/03-May-2024-274231

dtptngsample/03-May-2024-316244

layout/03-May-2024-6,1074,183

legacy/03-May-2024-718538

msgfmt/03-May-2024-665497

numfmt/03-May-2024-860639

plurfmtsample/03-May-2024-217175

props/03-May-2024-416345

strsrch/03-May-2024-650569

translit/03-May-2024-1,259851

uciter8/03-May-2024-1,318999

ucnv/03-May-2024-1,9651,390

udata/03-May-2024-920754

ufortune/03-May-2024-1,4751,036

ugrep/03-May-2024-842593

uresb/03-May-2024-1,116951

ustring/03-May-2024-959673

Makefile.inD03-May-20242.9 KiB10568

defs.mkD03-May-20241 KiB2916

readme.txtD03-May-20242.6 KiB8048

rules.mkD03-May-20241.1 KiB3921

readme.txt

1## Copyright (c) 2002-2010, International Business Machines Corporation
2## and others. All Rights Reserved.
3
4This directory contains sample code
5Below is a short description of the contents of this directory.
6
7break - demonstrates how to use BreakIterators in C and C++.
8
9cal      - prints out a calendar.
10
11case    - demonstrates how to do Unicode case conversion in C and C++.
12
13csdet   -  demonstrates using ICU's CharSet Detection API
14
15date     - prints out the current date, localized.
16
17datefmt  - an exercise using the date formatting API
18
19layout   - demonstrates the ICU LayoutEngine
20
21legacy   - demonstrates using two versions of ICU in one application
22
23msgfmt   - demonstrates the use of the Message Format
24
25numfmt   - demonstrates the use of the number format
26
27props    - demonstrates the use of Unicode properties
28
29strsrch - demonstrates how to search for patterns in Unicode text using the usearch interface.
30
31translit - demonstrates the use of ICU transliteration
32
33uciter8.c - demonstrates how to leniently read 8-bit Unicode text.
34
35ucnv     - demonstrates the use of ICU codepage conversion
36
37udata    - demonstrates the use of ICU low level data routines (reader/writer in 'all' MSVC solution)
38
39ufortune - demonstrates packaging and use of resources in an application
40
41ugrep  - demonstrates ICU Regular Expressions.
42
43uresb    - demonstrates building and loading resource bundles
44
45ustring  - demonstrates ICU string manipulation functions
46
47
48==
49* Where can I find more sample code?
50
51 - The "uconv" utility is a full-featured command line application.
52    It is normally built with ICU, and is located in icu/source/extra/uconv
53
54 - The "icuapps" CVS module contains other applications and libraries not
55    included with ICU.  You can check it out from the CVS command line
56    by using for example,  "cvs co icuapps" instead of "cvs co icu",
57   or through WebCVS at http://dev.icu-project.org/cgi-bin/viewcvs.cgi/icuapps/
58
59==
60* How do I build the samples?
61
62 - See the Readme in each subdirectory
63
64 To build all samples at once:
65
66    Windows MSVC:
67            - build ICU
68	    - open 'all' project file in 'all' subdirectory
69            - build project
70            - sample executables will be located in /x86/Debug folders of each sample subdirectory
71
72    Unix:   - build and install (make install) ICU
73            - be sure 'icu-config' is accessible from the PATH
74            - type 'make all-samples' from this directory
75               (other targets:  clean-samples, check-samples)
76           Note: 'make all-samples' won't work correctly in out of source builds.
77
78            - legacy and layout are not included in these lists,
79                   please see their individual readmes.
80