projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
source
/
core
/
util
/
String.cpp
diff --git
a/source/core/util/String.cpp
b/source/core/util/String.cpp
index
30a7ce5
..
28381de
100644
(file)
--- a/
source/core/util/String.cpp
+++ b/
source/core/util/String.cpp
@@
-18,17
+18,17
@@
using namespace std;
using namespace anna;
void String::toUpper()
using namespace anna;
void String::toUpper()
-
throw()
{
+{
std::transform(begin(), end(), begin(), (int(*)(int)) toupper);
}
void String::toLower()
std::transform(begin(), end(), begin(), (int(*)(int)) toupper);
}
void String::toLower()
-
throw()
{
+{
std::transform(begin(), end(), begin(), (int(*)(int)) tolower);
}
String& String::operator<< (const char* vv)
std::transform(begin(), end(), begin(), (int(*)(int)) tolower);
}
String& String::operator<< (const char* vv)
-
throw()
{
+{
if(vv == NULL) {
if(a_flags & Flag::ShowNull)
string::operator+= ("<null>");
if(vv == NULL) {
if(a_flags & Flag::ShowNull)
string::operator+= ("<null>");
@@
-39,7
+39,7
@@
throw() {
}
String& String::operator<< (const int vv)
}
String& String::operator<< (const int vv)
-
throw()
{
+{
char aux [16];
sprintf(aux, "%d", vv);
string::operator+= (aux);
char aux [16];
sprintf(aux, "%d", vv);
string::operator+= (aux);
@@
-47,7
+47,7
@@
throw() {
}
String& String::operator<< (const unsigned int vv)
}
String& String::operator<< (const unsigned int vv)
-
throw()
{
+{
char aux [16];
sprintf(aux, "%u", vv);
string::operator+= (aux);
char aux [16];
sprintf(aux, "%u", vv);
string::operator+= (aux);
@@
-55,7
+55,7
@@
throw() {
}
String& String::operator<< (const S64 vv)
}
String& String::operator<< (const S64 vv)
-
throw()
{
+{
char aux [32];
//sprintf(aux, "%lld", vv);
#ifdef __anna64__
char aux [32];
//sprintf(aux, "%lld", vv);
#ifdef __anna64__
@@
-68,7
+68,7
@@
throw() {
}
String& String::operator<< (const U64 vv)
}
String& String::operator<< (const U64 vv)
-
throw()
{
+{
char aux [32];
//sprintf(aux, "%llu", vv);
#ifdef __anna64__
char aux [32];
//sprintf(aux, "%llu", vv);
#ifdef __anna64__
@@
-81,7
+81,7
@@
throw() {
}
String& String::operator<< (const float vv)
}
String& String::operator<< (const float vv)
-
throw()
{
+{
char aux [64];
sprintf(aux, "%f", vv);
string::operator+= (aux);
char aux [64];
sprintf(aux, "%f", vv);
string::operator+= (aux);
@@
-89,7
+89,7
@@
throw() {
}
String& String::operator<< (const double vv)
}
String& String::operator<< (const double vv)
-
throw()
{
+{
char aux [64];
sprintf(aux, "%e", vv);
string::operator+= (aux);
char aux [64];
sprintf(aux, "%e", vv);
string::operator+= (aux);
@@
-97,12
+97,12
@@
throw() {
}
String& String::operator<< (const DataBlock& vv)
}
String& String::operator<< (const DataBlock& vv)
-
throw()
{
+{
return *this += vv.asString();
}
//static
String String::format(const DataBlock& vv, const int characterByLine)
return *this += vv.asString();
}
//static
String String::format(const DataBlock& vv, const int characterByLine)
-
throw()
{
+{
return String(vv.asString(characterByLine));
}
return String(vv.asString(characterByLine));
}