Overview   Class List   Class Hierarchy   Class Members   Functions & Constants   Defines   Header Files  

unistrref.hpp File Reference


Detailed Description

. Shallow string object consisting of a pair of string pointer and a length

-----------------------------------------------------------------------------

string interface of uima::UnicodeStringRef

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-----------------------------------------------------------------------------

-----------------------------------------------------------------------------


Namespaces

namespace  uima

Classes

class  uima::UnicodeStringRef
 The class UnicodeStringRef provides support for non zero-terminated strings that are presented as pointers to Unicode character arrays with an associated length. More...

vector to/from delimited string conversion routines

UnicodeStringRef strtrim (const UnicodeStringRef &s)
 Removes whitespace from both ends of a string.
int32_t delimitedUnicodeStringRef2Vector (std::vector< uima::UnicodeStringRef > &rveclstrOutput, const UChar *pcInput, int32_t uiInputLength, const UChar *cpszDelimiters, bool bTrimString, bool bInsertEmptyStrings)
 Splits a delimited string into pieces and stores the results in a vector of strings.
int32_t delimitedUnicodeStringRef2Vector (std::vector< UnicodeStringRef > &veclstrOutput, const UChar *pcInput, const UChar *cpszDelimiters, bool bTrimString, bool bInsertEmptyStrings)

Functions

std::ostream & operator<< (std::ostream &outStream, const uima::UnicodeStringRef &crUStrRef)
 Output stream support for UnicodeStringRef (Note: inside namespace).


Function Documentation

std::ostream & uima::operator<< std::ostream &  outStream,
const uima::UnicodeStringRef crUStrRef
 

Output stream support for UnicodeStringRef (Note: inside namespace).

UnicodeStringRef strtrim const UnicodeStringRef &  s  )  [inline]
 

Removes whitespace from both ends of a string.

Template function using isspace_templ().

int32_t delimitedUnicodeStringRef2Vector std::vector< uima::UnicodeStringRef > &  rveclstrOutput,
const UChar *  pcInput,
int32_t  uiInputLength,
const UChar *  cpszDelimiters,
bool  bTrimString,
bool  bInsertEmptyStrings
 

Splits a delimited string into pieces and stores the results in a vector of strings.

Delimiters are passed as a zero terminated string.

Parameters:
rveclstrOutput (Output) The vector where the results are stored
pcInput The delimited string to split.
uiInputLength The number of chars in pcInput
cpszDelimiters The delimiters. UChar* are interpreted as a set of delimiters.
bTrimString Flag: If true, all pieces will be trimmed before storing in storeVar
bInsertEmptyStrings Flag: If false, pieces that have length 0 will not be stored in storeVar
Returns:
The number of strings added to rvecstrOutput

int32_t delimitedUnicodeStringRef2Vector std::vector< UnicodeStringRef > &  veclstrOutput,
const UChar *  pcInput,
const UChar *  cpszDelimiters,
bool  bTrimString,
bool  bInsertEmptyStrings
[inline]
 


Generated on Mon Oct 1 16:04:12 2012 for UIMACPP API by  doxygen 1.3.9.1