57 std::stringstream converter;
58 converter.precision(std::numeric_limits<double>::digits10);
60 return converter.str().c_str();
65 std::stringstream converter;
66 converter.precision(std::numeric_limits<double>::digits10);
68 return converter.str().c_str();
75 sprintf_s(buffer, 64,
"%u", value);
77 sprintf(buffer,
"%u", value);
86 sprintf_s(buffer, 64,
"%d", value);
88 sprintf(buffer,
"%d", value);
95 std::stringstream converter;
96 converter.precision(std::numeric_limits<double>::digits10);
98 return converter.str().c_str();
103 std::stringstream converter;
104 converter.precision(std::numeric_limits<double>::digits10);
106 return converter.str().c_str();
109 #if defined(__APPLE__) && !defined(__LP64__) 112 std::stringstream converter;
113 converter.precision(std::numeric_limits<double>::digits10);
115 return converter.str().c_str();
123 sprintf_s(buffer, 64,
"%.*g", 8, (
double) value);
125 sprintf(buffer,
"%.*g", 8, (
double) value);
134 sprintf_s(buffer, 64,
"%.*g", 16, value);
136 sprintf(buffer,
"%.*g", 16, value);
145 sprintf_s(buffer, 64,
"%.*f", (
kt_int32s)precision, (
double)value);
147 sprintf(buffer,
"%.*f", (
kt_int32s)precision, (
double)value);
156 sprintf_s(buffer, 64,
"%.*f", (
kt_int32s)precision, value);
158 sprintf(buffer,
"%.*f", (
kt_int32s)precision, value);
202 int precision = std::numeric_limits<double>::digits10;
203 std::stringstream converter;
204 converter.precision(precision);
215 int precision = std::numeric_limits<double>::digits10;
216 std::stringstream converter;
217 converter.precision(precision);
228 int precision = std::numeric_limits<double>::digits10;
229 std::stringstream converter;
230 converter.precision(precision);
241 int precision = std::numeric_limits<double>::digits10;
242 std::stringstream converter;
243 converter.precision(precision);
254 int precision = std::numeric_limits<double>::digits10;
255 std::stringstream converter;
256 converter.precision(precision);
267 int precision = std::numeric_limits<double>::digits10;
268 std::stringstream converter;
269 converter.precision(precision);
280 int precision = std::numeric_limits<double>::digits10;
281 std::stringstream converter;
282 converter.precision(precision);
293 int precision = std::numeric_limits<double>::digits10;
294 std::stringstream converter;
295 converter.precision(precision);
306 rValue = rStringValue;
316 std::stringstream converter;
345 std::stringstream converter;
353 converter >> valueRed;
354 converter >> valueGreen;
355 converter >> valueBlue;
356 converter >> valueAlpha;
374 std::stringstream converter;
383 converter >> valueHeading;
400 std::stringstream converter;
432 char const* delims =
" \t\r\n";
435 std::string::size_type index = result.find_last_not_of(delims);
436 if (index != std::string::npos)
437 result.erase(++index);
439 index = result.find_first_not_of(delims);
440 if (index != std::string::npos)
442 result.erase(0, index);
449 return String(result.c_str());
456 std::string retStr = rSource.
ToCString();
458 if (rFind == rReplace)
460 return String(retStr.c_str());
463 for (; ( j = retStr.find(rFind.
ToCString()) ) != std::string::npos; )
468 return String(retStr.c_str());
473 return isalpha(ch) != 0;
481 std::transform(value.begin(), value.end(), ext.begin(), tolower);
483 return String(ext.c_str());
491 std::transform(value.begin(), value.end(), ext.begin(), toupper);
493 return String(ext.c_str());
566 #if defined(__APPLE__) && !defined(__LP64__) 591 m_String.Append(rValue);
static String Replace(const String &rSource, const String &rFind, const String &rReplace)
static kt_bool FromString(const String &rStringValue, kt_bool &rValue)
kt_size_t FindFirstOf(const String &rValue) const
const String ToString() const
static String Trim(const String &rValue)
static String ToUpperCase(const String &rValue)
void SetBlue(kt_double blue)
void SetGreen(kt_double green)
StringBuilder & operator<<(kt_int8u value)
void SetPosition(const Vector3d &rPosition)
static String ToString(const char *value)
const String & ToString() const
const String ToString() const
void SetAlpha(kt_double alpha)
signed long long kt_int64s
const String ToString(kt_int32u precision=4) const
static kt_bool IsLetter(char ch)
void SetHeading(kt_double heading)
static String ToLowerCase(const String &rValue)
const char * ToCString() const
unsigned long long kt_int64u
void SetOrientation(const Quaternion &rOrientation)
void SetRed(kt_double red)
const String ToString() const