Index: Source/wtf/unicode/UTF8.h |
diff --git a/Source/wtf/unicode/UTF8.h b/Source/wtf/unicode/UTF8.h |
index b014fa613f0d872df208c43080ab4b06f8c448ed..8b04cb90262ab41c30ff2fe3cfc801b9506b4278 100644 |
--- a/Source/wtf/unicode/UTF8.h |
+++ b/Source/wtf/unicode/UTF8.h |
@@ -20,7 +20,7 @@ |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
#ifndef WTF_UTF8_h |
@@ -53,26 +53,26 @@ namespace Unicode { |
// flag is set to strict, both irregular sequences and isolated surrogates |
// will cause an error. When the flag is set to lenient, both irregular |
// sequences and isolated surrogates are converted. |
- // |
+ // |
// Whether the flag is strict or lenient, all illegal sequences will cause |
// an error return. This includes sequences such as: <F4 90 80 80>, <C0 80>, |
// or <A0> in UTF-8, and values above 0x10FFFF in UTF-32. Conformant code |
// must check for illegal sequences. |
- // |
+ // |
// When the flag is set to lenient, characters over 0x10FFFF are converted |
// to the replacement character; otherwise (when the flag is set to strict) |
// they constitute an error. |
WTF_EXPORT ConversionResult convertUTF8ToUTF16( |
- const char** sourceStart, const char* sourceEnd, |
+ const char** sourceStart, const char* sourceEnd, |
UChar** targetStart, UChar* targetEnd, bool* isSourceAllASCII = 0, bool strict = true); |
WTF_EXPORT ConversionResult convertLatin1ToUTF8( |
- const LChar** sourceStart, const LChar* sourceEnd, |
+ const LChar** sourceStart, const LChar* sourceEnd, |
char** targetStart, char* targetEnd); |
WTF_EXPORT ConversionResult convertUTF16ToUTF8( |
- const UChar** sourceStart, const UChar* sourceEnd, |
+ const UChar** sourceStart, const UChar* sourceEnd, |
char** targetStart, char* targetEnd, bool strict = true); |
WTF_EXPORT unsigned calculateStringHashAndLengthFromUTF8MaskingTop8Bits(const char* data, const char* dataEnd, unsigned& dataLength, unsigned& utf16Length); |