User forums > Nightly builds
The 25 september 2010 build (6634) CODECOMPLETION BRANCH version is out.
Borr:
--- Quote from: stahta01 on October 14, 2010, 09:22:03 pm ---
--- Quote from: MortenMacFly on October 14, 2010, 09:11:20 pm ---
--- Quote from: Borr on October 14, 2010, 04:23:47 pm ---CC not show std::towlower
note: CC show std::tolower
--- End quote ---
Are you kidding??? Does it show or not show std::tolower ???
--- End quote ---
Notice the w in one of them, I think wide char version.
--- End quote ---
Yes that's right to(W)lower (wide char) missing in the CodeCompletion list
MortenMacFly:
--- Quote from: Borr on October 14, 2010, 09:26:57 pm ---
--- Quote from: stahta01 on October 14, 2010, 09:22:03 pm ---Notice the w in one of them, I think wide char version.
--- End quote ---
Yes that's right to(W)lower (wide char) missing in the CodeCompletion list
--- End quote ---
Right... my fault - I missed that. :oops:
Jenna:
I have towlower.
It's not in std-namespace, but in global namespace.
The declaration is between __BEGIN_NAMESPACE_C99 and __END_NAMESPACE_C99, in cdefs.h is the following comment:
--- Code: ---/* The standard library needs the functions from the ISO C90 standard
in the std namespace. At the same time we want to be safe for
future changes and we include the ISO C99 code in the non-standard
namespace __c99. The C++ wrapper header take case of adding the
definitions to the global namespace. */
--- End code ---
So I think it is correctly found in global namespace, and it can (and should ? ) be used without std:: ( at least here it works fine).
Loaden:
file: lib\gcc\i686-mingw32\4.4.4\include\c++\cwctype
--- Quote ---#pragma GCC system_header
#include <bits/c++config.h>
#if _GLIBCXX_HAVE_WCTYPE_H
#include <wctype.h>
#endif
#ifndef _GLIBCXX_CWCTYPE
#define _GLIBCXX_CWCTYPE 1
// Get rid of those macros defined in <wctype.h> in lieu of real functions.
#undef iswalnum
#undef iswalpha
#if _GLIBCXX_HAVE_ISWBLANK
# undef iswblank
#endif
#undef iswcntrl
#undef iswctype
#undef iswdigit
#undef iswgraph
#undef iswlower
#undef iswprint
#undef iswpunct
#undef iswspace
#undef iswupper
#undef iswxdigit
#undef towctrans
#undef towlower
#undef towupper
#undef wctrans
#undef wctype
#if _GLIBCXX_USE_WCHAR_T
_GLIBCXX_BEGIN_NAMESPACE(std)
using ::wctrans_t;
using ::wctype_t;
using ::wint_t;
using ::iswalnum;
using ::iswalpha;
#if _GLIBCXX_HAVE_ISWBLANK
using ::iswblank;
#endif
using ::iswcntrl;
using ::iswctype;
using ::iswdigit;
using ::iswgraph;
using ::iswlower;
using ::iswprint;
using ::iswpunct;
using ::iswspace;
using ::iswupper;
using ::iswxdigit;
using ::towctrans;
using ::towlower;
using ::towupper;
using ::wctrans;
using ::wctype;
_GLIBCXX_END_NAMESPACE
#endif //_GLIBCXX_USE_WCHAR_T
--- End quote ---
test demo:
--- Code: ---void test() {}
namespace qp
{
using ::test;
}
int main()
{
qp::test();
return 0;
}
--- End code ---
Borr:
--- Quote from: jens on October 14, 2010, 10:29:46 pm ---I have towlower.
It's not in std-namespace, but in global namespace.
So I think it is correctly found in global namespace, and it can (and should ? ) be used without std:: ( at least here it works fine).
--- End quote ---
sorry, it's my mistake. thanks for the reply
Navigation
[0] Message Index
[*] Previous page
Go to full version