Refs #7073; will close when merged to release. Thanks for the catch!

[SVN r79261]
This commit is contained in:
Marshall Clow
2012-07-04 15:41:33 +00:00
parent dcda91716a
commit 93b0b886fd

View File

@ -66,12 +66,12 @@ If you want to catch all the decoding errors, you can catch exceptions of type `
Assuming that `out` is an iterator that accepts `char` values, and `wout` accepts `wchar_t` values (and that sizeof ( wchar_t ) == 2) Assuming that `out` is an iterator that accepts `char` values, and `wout` accepts `wchar_t` values (and that sizeof ( wchar_t ) == 2)
`` ``
hex ( "abcde", out ) --> "616263646566" hex ( "abcdef", out ) --> "616263646566"
hex ( "32", out ) --> "3332" hex ( "32", out ) --> "3332"
hex ( "abcde", wout ) --> "006100620063006400650066" hex ( "abcdef", wout ) --> "006100620063006400650066"
hex ( "32", wout ) --> "00330032" hex ( "32", wout ) --> "00330032"
unhex ( "616263646566", out ) --> "abcde" unhex ( "616263646566", out ) --> "abcdef"
unhex ( "3332", out ) --> "32" unhex ( "3332", out ) --> "32"
unhex ( "616263646566", wout ) --> "\6162\6364\6566" ( i.e, a 3 character string ) unhex ( "616263646566", wout ) --> "\6162\6364\6566" ( i.e, a 3 character string )
unhex ( "3332", wout ) --> "\3233" ( U+3332, SQUARE HUARADDO ) unhex ( "3332", wout ) --> "\3233" ( U+3332, SQUARE HUARADDO )