summaryrefslogtreecommitdiff
path: root/cosv/source/strings
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-22 22:16:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-22 22:16:15 +0100
commit3f7d2ae5ca6eba12074c5aa35b59504a41c274b1 (patch)
tree17286b9c3c99f368d87b396de3ecbefb5c492de6 /cosv/source/strings
parentcd4395feb590a6f8fa1123dcd590e97a7c0cd302 (diff)
more unused methods
Diffstat (limited to 'cosv/source/strings')
-rw-r--r--cosv/source/strings/streamstr.cxx37
-rw-r--r--cosv/source/strings/string.cxx60
2 files changed, 0 insertions, 97 deletions
diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx
index 68a04355c3a2..7fe0d35cefae 100644
--- a/cosv/source/strings/streamstr.cxx
+++ b/cosv/source/strings/streamstr.cxx
@@ -654,43 +654,6 @@ c_str()
// Does nothing.
}
-
-
-void
-Split( std::vector<String> & o_list,
- const char * i_text )
-{
- const char *
- pCurrentToken = 0;
- bool
- white = false;
- for (const char * p = i_text; *p != '\0'; ++p)
- {
- white = UINT8(*p) > 32;
- if (pCurrentToken != 0)
- {
- if (white)
- {
- o_list.push_back(String(pCurrentToken, p));
- pCurrentToken = 0;
- }
- }
- else
- {
- if ( NOT white)
- pCurrentToken = p;
- } // endif (bInToken) else
- } // end for
-
- if (pCurrentToken != 0)
- {
- o_list.push_back(String(pCurrentToken));
- }
-}
-
-
-
-
} // namespace csv
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/strings/string.cxx b/cosv/source/strings/string.cxx
index f5ada3e4f8f0..dbc804d3e44f 100644
--- a/cosv/source/strings/string.cxx
+++ b/cosv/source/strings/string.cxx
@@ -223,23 +223,6 @@ compare( const String & i_s1,
}
int
-compare( const char * i_s1,
- const String & i_s2,
- csv::str::position i_nStartPosition2,
- csv::str::size i_nLength )
-{
- const char * pS2 = str_from_StringOffset( i_s2, i_nStartPosition2 );
-
- if ( i_nLength != csv::str::maxsize )
- return strncmp( i_s1,
- pS2,
- i_nLength );
- else
- return strcmp( i_s1,
- pS2 );
-}
-
-int
compare( const CharOrder_Table & i_rOrder,
const char * i_s1,
const char * i_s2 )
@@ -252,46 +235,6 @@ compare( const CharOrder_Table & i_rOrder,
}
int
-compare( const CharOrder_Table & i_rOrder,
- const String & i_s1,
- csv::str::position i_nStartPosition1,
- const char * i_s2,
- csv::str::size i_nLength )
-{
- const char * pS1 = str_from_StringOffset( i_s1, i_nStartPosition1 );
-
- if ( i_nLength != csv::str::maxsize )
- return compare( i_rOrder,
- pS1,
- i_s2,
- i_nLength );
- else
- return compare( i_rOrder,
- pS1,
- i_s2 );
-}
-
-int
-compare( const CharOrder_Table & i_rOrder,
- const char * i_s1,
- const String & i_s2,
- csv::str::position i_nStartPosition2,
- csv::str::size i_nLength )
-{
- const char * pS2 = str_from_StringOffset( i_s2, i_nStartPosition2 );
-
- if ( i_nLength != csv::str::maxsize )
- return compare( i_rOrder,
- i_s1,
- pS2,
- i_nLength );
- else
- return compare( i_rOrder,
- i_s1,
- pS2 );
-}
-
-int
compare( const CharOrder_Table & i_rOrder,
const char * i_s1,
const char * i_s2,
@@ -310,9 +253,6 @@ compare( const CharOrder_Table & i_rOrder,
return 0;
}
-
-
-
} // namespace csv
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */