Internally view.TextBuffer use sequence of Unicode characters encoded using
UTF-16 and use characters position/count for manipulating text.

When formatting an ANSI text, Replacements offset/length is same with
position/count but not an Unicode.

So conversion needed.
#include <iostream>
#include <string>

int main( int argc, char* argv[ ] )
{
        std::string helloworld = "안녕, 세상!";

        for( int i=0; i<3; ++i )
        {
                std::cout << helloworld << std::endl;
        }

        return 0;
}

Attachment: ClangFormatPackage.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to