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