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

strconvert.hpp File Reference


Detailed Description

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

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.

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

Contains various string conversion routines (e.g. string2Long)-------------------------------------------------------------------------------


Namespaces

namespace  uima

Functions

Conventional conversion functions: POD to/from string.
template
BS_TEMPLATE_DEFINITION_ARGS
BASIC_STRING_TEMPLATE 
uima::long2String (long l, BASIC_STRING_TEMPLATE &s)
 Converts a long to a string.
template
BS_TEMPLATE_DEFINITION_ARGS
long 
uima::string2Long (const BASIC_STRING_TEMPLATE &s)
 Converts a string to a long.
template
BS_TEMPLATE_DEFINITION_ARGS
BASIC_STRING_TEMPLATE 
uima::double2String (double d, BASIC_STRING_TEMPLATE &s)
 Converts a double to a string.
template
BS_TEMPLATE_DEFINITION_ARGS
BASIC_STRING_TEMPLATE 
uima::double2String (double d, size_t uiDigitsAfterPeriod, BASIC_STRING_TEMPLATE &s)
 Converts a double to a string with a specified number of digits after the period.
template
BS_TEMPLATE_DEFINITION_ARGS
double 
uima::string2Double (const BASIC_STRING_TEMPLATE &s)
 Converts a string to a double.
template
BS_TEMPLATE_DEFINITION_ARGS
BASIC_STRING_TEMPLATE 
uima::bool2String (bool b, BASIC_STRING_TEMPLATE &s)
 Converts a bool to a string, either "true" or "false".
template
BS_TEMPLATE_DEFINITION_ARGS
bool 
uima::string2Bool (const BASIC_STRING_TEMPLATE &s)
 Converts a string ("true", "ON", "YES", "T", "Y", "+", "1" = true else false) to a bool.
Template function for conversion <EM>to</EM> string.
template<class T>
void uima::convertToString (const T &crtSource, std::string &rstrTarget)
 Generic template function (assumes T to be integral numeric type).
void uima::convertToString (const icu::UnicodeString &crtSource, std::string &rstrTarget)
 Explicit specialization for UString.
void uima::convertToString (const std::string &crtSource, std::string &rstrTarget)
 Explicit specialization for string.
void uima::convertToString (const double &crtSource, std::string &rstrTarget)
 Explicit specialization for double.
void uima::convertToString (bool const &crtSource, std::string &rstrTarget)
 Explicit specialization for bool.
void uima::convertToString (const float &crtSource, std::string &rstrTarget)
 Explicit specialization for float.
Template function for conversion <EM>from</EM> string.
template<class T>
void uima::convertFromString (const std::string &crstrSource, T &crtTarget)
 Generic template function (assumes T to be integral numeric type).
void uima::convertFromString (const std::string &crstrSource, icu::UnicodeString &crTarget)
 Explicit specialization for UString.
void uima::convertFromString (const std::string &crstrSource, std::string &crtTarget)
 Explicit specialization for string.
void uima::convertFromString (const std::string &crstrSource, double &crtTarget)
 Explicit specialization for double.
void uima::convertFromString (const std::string &crstrSource, float &crtTarget)
 Explicit specialization for float.
void uima::convertFromString (const std::string &crstrSource, bool &crtTarget)
 Explicit specialization for boole.


Generated on Mon Oct 1 11:15:06 2012 for UIMACPP API by  doxygen 1.5.6