search for: numwchar

Displaying 7 results from an estimated 7 matches for "numwchar".

Did you mean: numwchars
2011 Oct 03
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
How about this: for (int i = 0; i != NumWChars; ++i) absPath[i] = std::tolower(absPath[i], std::locale()); seems to be working just fine? On Mon, Oct 3, 2011 at 9:27 PM, Bryce Cogswell <bryceco at gmail.com> wrote: > Right, but maybe if you switch to using tolower_l() and pass an appropriate > locale you can get it to wo...
2011 Oct 03
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
Am 03.10.2011 22:12, schrieb Nikola Smiljanic: > How about this: > > for (int i = 0; i != NumWChars; ++i) > absPath[i] = std::tolower(absPath[i], std::locale()); > > seems to be working just fine? You have two assumptions here: Assumption 1: For each lowercase character, there is an equivalent uppercase character, and vice versa. This is not true in half a dozen languages ac...
2011 Oct 03
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
Right, but maybe if you switch to using tolower_l() and pass an appropriate locale you can get it to work the same way. I'm not sure what locale that would have to be, but it needs to match whatever NTFS uses for its $upcase file. On Oct 3, 2011, at 12:19 PM, Nikola Smiljanic wrote: > CharLowerW does the right thing. But I still need Windows.h to use it :) > > On Mon, Oct 3, 2011
2011 Oct 03
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
On 10/03/2011 11:59 PM, Joachim Durchholz wrote: > Am 03.10.2011 22:12, schrieb Nikola Smiljanic: >> How about this: >> >> for (int i = 0; i != NumWChars; ++i) >> absPath[i] = std::tolower(absPath[i], std::locale()); >> >> seems to be working just fine? > > You have two assumptions here: > > Assumption 1: For each lowercase character, there is an equivalent > uppercase character, and vice versa. > Thi...
2011 Oct 04
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...believe the concern about performing a char-by-char conversion is valid; for example the NTFS-3G driver uses a simplistic upcase table and seems to work fine. I suspect Windows does the same. On Oct 3, 2011, at 1:12 PM, Nikola Smiljanic wrote: > How about this: > > for (int i = 0; i != NumWChars; ++i) > absPath[i] = std::tolower(absPath[i], std::locale()); > > seems to be working just fine? > > On Mon, Oct 3, 2011 at 9:27 PM, Bryce Cogswell <bryceco at gmail.com> wrote: > Right, but maybe if you switch to using tolower_l() and pass an appropriate locale y...
2011 Oct 03
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
CharLowerW does the right thing. But I still need Windows.h to use it :) On Mon, Oct 3, 2011 at 8:43 PM, Bryce Cogswell <bryceco at gmail.com> wrote: > Locale-specific is not what we want, but I don't believe Windows exposes an > alternative API that does what we want. (Does CharLower give a different > answer than tolower?) > > However, looking over the FileManager code
2011 Oct 03
5
[LLVMdev] [cfe-dev] Unicode path handling on Windows
Locale-specific is not what we want, but I don't believe Windows exposes an alternative API that does what we want. (Does CharLower give a different answer than tolower?) However, looking over the FileManager code a little more I'm not even sure using the path is the best solution, it seems it would be better to use inode like the unix code does. Windows doesn't support inode (the