[Qt-creator] Conext-help (autocomplete) ignorant of wide-character functions; Editor does not know 'L' qualifier

Roberto Raggi roberto.raggi at trolltech.com
Thu Jan 29 16:56:45 CET 2009


Hi,

Please try with tomorrow's snapshot, I just committed a fix for the  
parsing of wide char literals.

About the missing iswdigit in the std namespace. That's probably  
because your std library implementation imports iswdigit from the  
global namespace. For example, with something like

namespace std {
   using ::iswdigit;
}

This is a known issue in Creator and we will fix it ASAP. For now, as  
workaround you can use iswdigit( ) instead of std::iswdigit(..).

Thanks for the report.

ciao robe

On Jan 29, 2009, at 4:25 PM, Sushant Sharma wrote:

>
> Dear Friends,
>
> First of all; Congrulations and Thanks to the Qt-Creator creators!  
> The editor is powerful and context-help (autocomplete) is great! I  
> love it.
>
> However, I write to report about a problem with context-help. The  
> following code:
>
> ...
> #include <iostream>
> #include <cwchar>
> ...
> int main(............)
> {
>     ...
>     bool flag = std::iswdigit(L'9');
>     ....
>     ...
> }
>
>
> compiles correctly. But,
> 1. in the editor, when I type std::, the context help does not list  
> the wide character versions of isdigit, isalnum etc. functions. Also,
> 2. when I place an "L" before a string or character to specify that  
> it is supposed to be unicode string or char, the editor underlines  
> my statement signalling syntax error.
>
> Am I right with the above two? Anyone noticed that!
>
> Regards,
> Sushant
> Sushant Sharma
> sushantsharma at ymail.com
> s.sushant.sharma at gmail.com
> Mb: +91 9972028554
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090129/9cd2ef04/attachment.html 


More information about the Qt-creator-old mailing list