srecord  1.65.0
string.h
Go to the documentation of this file.
1 //
2 // srecord - Manipulate EPROM load files
3 // Copyright (C) 2013 Peter Miller
4 //
5 // This program is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or (at your
8 // option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 // more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 //
18 
19 #ifndef SRECORD_STRING_H
20 #define SRECORD_STRING_H
21 
22 #include <string>
23 
24 namespace srecord {
25 
26 /**
27  * The string_url_encode function build a new string by adding url
28  * quoting ("$FF")
29  */
30 std::string string_url_encode(const std::string &text);
31 
32 /**
33  * The string_url_decode function build a new string by removing url
34  * quoting ("$FF")
35  */
36 std::string string_url_decode(const std::string &text);
37 
38 std::string string_quote_c(const std::string &text);
39 
40 };
41 
42 // vim: set ts=8 sw=4 et :
43 #endif // SRECORD_STRING_H
std::string string_quote_c(const std::string &text)
std::string string_url_encode(const std::string &text)
The string_url_encode function build a new string by adding url quoting ("$FF")
std::string string_url_decode(const std::string &text)
The string_url_decode function build a new string by removing url quoting ("$FF")