]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/unistr_props.cpp
2 *******************************************************************************
4 * Copyright (C) 1999-2004, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: unistr_props.cpp
10 * tab size: 8 (not used)
13 * created on: 2004aug25
14 * created by: Markus W. Scherer
16 * Character property dependent functions moved here from unistr.cpp
19 #include "unicode/utypes.h"
20 #include "unicode/uchar.h"
21 #include "unicode/unistr.h"
31 int32_t i
= fLength
, length
;
33 // first cut off trailing white space
39 UTF_PREV_CHAR(fArray
, 0, i
, c
);
40 if(!(c
== 0x20 || u_isWhitespace(c
))) {
44 if(length
< fLength
) {
48 // find leading white space
56 UTF_NEXT_CHAR(fArray
, i
, length
, c
);
57 if(!(c
== 0x20 || u_isWhitespace(c
))) {
62 // move string forward over leading white space
64 doReplace(0, start
, 0, 0, 0);