~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cpp/include/IceUtil/StringUtil.h

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
23
23
ICE_UTIL_API std::string escapeString(const std::string&, const std::string&);
24
24
 
25
25
//
26
 
// Remove escape sequences added by escapeString.
 
26
// Remove escape sequences added by escapeString. Throws IllegalArgumentException
 
27
// for an invalid input string.
27
28
//
28
 
ICE_UTIL_API bool unescapeString(const std::string&, std::string::size_type, std::string::size_type, std::string&);
29
 
 
 
29
ICE_UTIL_API std::string unescapeString(const std::string&, std::string::size_type, std::string::size_type);
30
30
 
31
31
//
32
32
// Split a string using the given delimiters. Considers single and double quotes;
35
35
ICE_UTIL_API bool splitString(const std::string&, const std::string&, std::vector<std::string>&);
36
36
 
37
37
//
 
38
// Join a list of strings using the given delimiter. 
 
39
//
 
40
ICE_UTIL_API std::string joinString(const std::vector<std::string>&, const std::string&);
 
41
 
 
42
//
38
43
// Trim white space
39
44
//
40
45
ICE_UTIL_API std::string trim(const std::string&);
67
72
#endif
68
73
 
69
74
//
70
 
// Functions to convert to to all lower/upper case
 
75
// Functions to convert to lower/upper case. These functions accept
 
76
// UTF8 string/characters but ignore non ASCII characters. Unlike, the
 
77
// C methods, these methods are not local dependent.
71
78
//
72
79
ICE_UTIL_API std::string toLower(const std::string&);
73
80
ICE_UTIL_API std::string toUpper(const std::string&);
 
81
ICE_UTIL_API bool isAlpha(char);
 
82
ICE_UTIL_API bool isDigit(char);
74
83
 
75
84
//
76
85
// Remove all whitespace from a string