Support/ConvertUTF: implement U+FFFD insertion according to the recommendation
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 16 Jun 2014 11:09:46 +0000 (11:09 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 16 Jun 2014 11:09:46 +0000 (11:09 +0000)
commit9becc6c2afc7d62fd855912eacd11586feb4a760
treeb2f69617f7ebbecc15b717177b8a9d34e1b66a08
parentb3820b4289dd95e025c109a137964cf73457b5c1
Support/ConvertUTF: implement U+FFFD insertion according to the recommendation
given in the Unicode spec

That is, replace every maximal subpart of an ill-formed subsequence with one
U+FFFD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211015 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ConvertUTF.h
lib/Support/ConvertUTF.c
unittests/Support/ConvertUTFTest.cpp