OSDN Git Service
(root)
/
hmh
/
hhml.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
refresh.
[hmh/hhml.git]
/
lib
/
form_utf8.cc
1
#include "form_utf8.h"
2
#include "util_string.h"
3
#include "utf8.h"
4
5
/*
6
Decode both Name and Value in FORM value.
7
Delete NUL chars.
8
Delete char which is not a valid UTF-8 text.
9
*/
10
11
void CGIFormUTF8::decode (ustring& key) {
12
key = fixUTF8 (urldecode_nonul (key));
13
}
14
15
void CGIFormUTF8::fix (ustring& key) {
16
key = fixUTF8 (key);
17
}
18