[Mingw-w64-public] [PATCH] Remove duplicates

2015-07-01 Thread Alexey Pavlov
Activscp header/idl define twice many IID. diff --git a/mingw-w64-headers/include/activscp.h b/mingw-w64-headers/include/activscp.h index 847290e..cf93d7a 100644 --- a/mingw-w64-headers/include/activscp.h +++ b/mingw-w64-headers/include/activscp.h @@ -175,35 +175,9 @@ extern "C" { DEFINE_GUID(CAT

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread papa
In an earlier and a different posting, I express my concern about MS-Windows' std::string/locales, what is the point of wstring, I asked, if at the end there is no reliable uft-8/16/32 support for. them. The best thing to do is to use boost's or some other 3rd party, if true utf support is need

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread papa
This one is way cooler http://www.bing.com/search?q=toupper&src=IE-TopResult&FORM=IETR02&conversationid= From: Alexandre Pereira Nunes Sent: Tuesday, June 30, 2015 7:37 PM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] toUpper() [cut] This may also help in future:

Re: [Mingw-w64-public] wchar_t vs char

2015-07-01 Thread Alexandre Pereira Nunes
Em qua, 1 de jul de 2015 às 02:36, Greg Jung escreveu: > In my programming instead of "multibytetowide" conversion preparing for a > windows API inside #ifdef UNICODE blocks, I just call the ANSI mode of > the function with ascii c-strings > passed in, and let microsoft perform the A->W convers

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread Martin Sebor
On 07/01/2015 06:02 AM, p...@arbolone.ca wrote: std::wstring source(L"Hello World"); std::wstring destination; destination.resize(source.size()); std::transform (source.begin(), source.end(), destination.begin(), (int(*)(int))std::toupper); The above code is what did the trick, do not ask how, I

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread Martin Sebor
On 06/30/2015 05:24 PM, Riot wrote: > #include > #include > > std::string str = "Hello World"; > std::transform(str.begin(), str.end(), str.begin(), std::toupper); Please note this code is subtly incorrect for two reasons. There are two overloads of std::toupper: 1) int toup

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread papa
std::wstring source(L"Hello World"); std::wstring destination; destination.resize(source.size()); std::transform (source.begin(), source.end(), destination.begin(), (int(*)(int))std::toupper); The above code is what did the trick, do not ask how, I am still digesting it. However, any suggestions

Re: [Mingw-w64-public] std::locale

2015-07-01 Thread Ruben Van Boxem
2015-07-01 12:15 GMT+02:00 : > In this web page: > http://en.cppreference.com/w/cpp/locale/toupper > > I got this code: > #include > #include > #include > > int main() > { > wchar_t c = L'\u017f'; // Latin small letter Long S ('ſ') > std::cout << std::hex << std::showbase; > std::co

[Mingw-w64-public] std::locale

2015-07-01 Thread papa
In this web page: http://en.cppreference.com/w/cpp/locale/toupper I got this code: #include #include #include int main() { wchar_t c = L'\u017f'; // Latin small letter Long S ('ſ') std::cout << std::hex << std::showbase; std::cout << "in the default locale, toupper(" << (std::wint_

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread Jonathan Wakely
On 30 June 2015 at 23:58, wrote: > I would like to write a function to capitalize letters, say... > std::wstring toUpper(const std::wstring wstr){ > for ( auto it = wstr.begin(); it != wstr.end(); ++it){ >global_wapstr.append(std::towupper(&it)); > > } > } > > This doesn’t work, but doesn