<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/ctype.h, branch upstream/11.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2015-10-13T20:43:49Z</updated>
<entry>
<title>Commit log from Dragonfly:</title>
<updated>2015-10-13T20:43:49Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2015-10-13T20:43:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f5dde0166d6658309344f309845075707f207509'/>
<id>urn:sha1:f5dde0166d6658309344f309845075707f207509</id>
<content type='text'>
FreeBSD extended ctypes to include numbers (e.g. isnumber()) but never
actually implemented it.  The isnumber() function was equivalent to the
isdigit() function in every case.

Now that DragonFly's ctype source files have number definitions, the
number ctype can finally be implemented.  It's given a new flag _CTYPE_N.
The isalnum() and iswalnum() functions have been changed to use this
flag rather than the _CTYPE_D digit flag.

While isalnum(), isnumber(), and their wide equivalents now return
different values in locale cases, the ishexnumber() and iswhexnumber()
functions are unchanged.  They are still aliases for isxdigit() and
iswxdigit().

Also change ctype.h for isdigit and isxdigit to use sbistype like the
other functions.

Obtained from:	dragonfly
</content>
</entry>
<entry>
<title>Correctly expose xlocale functions if people include the headers in the wrong</title>
<updated>2012-03-28T12:11:54Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2012-03-28T12:11:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3ac9d659890471a1936268bfec06e74caf9025df'/>
<id>urn:sha1:3ac9d659890471a1936268bfec06e74caf9025df</id>
<content type='text'>
order (as some ports apparently do).

Approved by:	dim (mentor)
</content>
</entry>
<entry>
<title>Reapply 227753 (xlocale cleanup), plus some fixes so that it passes build</title>
<updated>2012-03-04T15:31:13Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2012-03-04T15:31:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a8ed63bb3d75a8057a0ed2e758964b7785106f33'/>
<id>urn:sha1:a8ed63bb3d75a8057a0ed2e758964b7785106f33</id>
<content type='text'>
universe with gcc.

Approved by:	dim (mentor)
</content>
</entry>
<entry>
<title>Revert r231673 and r231682 for now, until we can run a full make</title>
<updated>2012-02-14T21:48:46Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2012-02-14T21:48:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b74cf6dcf17dd06d3b530f7d4bec6191728f24b9'/>
<id>urn:sha1:b74cf6dcf17dd06d3b530f7d4bec6191728f24b9</id>
<content type='text'>
universe with them.  Sorry for the breakage.

Pointy hat to:	     me and brooks
</content>
</entry>
<entry>
<title>Cleanup of xlocale:</title>
<updated>2012-02-14T12:03:23Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2012-02-14T12:03:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=82dd5016bd749d1d9e1531bd1703aebeecceab34'/>
<id>urn:sha1:82dd5016bd749d1d9e1531bd1703aebeecceab34</id>
<content type='text'>
- Address performance regressions encountered by das@ by caching per-thread
  data in TLS where available.
- Add a __NO_TLS flag to cdefs.h to indicate where not available.
- Reorganise the xlocale.h definitions into xlocale/*.h so that they can be
  included from multiple places.
- Export the POSIX2008 subset of xlocale when POSIX2008 says it should be
  exported, independently of whether xlocale.h is included.
- Fix the bug where programs using ctype functions always assumed ASCII unless
  recompiled.
- Fix some style(9) violations.

Reviewed by:	brooks (mentor)
Approved by:	dim (mentor)
</content>
</entry>
<entry>
<title>Hide some more macros that will break C++ when compiling in C++ mode.</title>
<updated>2011-11-13T17:07:26Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2011-11-13T17:07:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c3b43c58d0dbee71e33d99b61050953cf13740bd'/>
<id>urn:sha1:c3b43c58d0dbee71e33d99b61050953cf13740bd</id>
<content type='text'>
Approved by:	dim (mentor)
</content>
</entry>
<entry>
<title>Remove the Berkeley clause 3's.</title>
<updated>2010-02-16T19:39:50Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2010-02-16T19:39:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2556687c6724a3c8b3685103aad511afb3068b2'/>
<id>urn:sha1:f2556687c6724a3c8b3685103aad511afb3068b2</id>
<content type='text'>
Add a few $FreeBSD$
</content>
</entry>
<entry>
<title>Don't prototype _tolower() and _toupper(). They're not supposed to be</title>
<updated>2009-03-14T19:04:24Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2009-03-14T19:04:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c6bd0d562152bb183d228019e2304bb4b65baae5'/>
<id>urn:sha1:c6bd0d562152bb183d228019e2304bb4b65baae5</id>
<content type='text'>
functions, and there's no implementation of them in any case.
</content>
</entry>
<entry>
<title>The problem is: currently our single byte ctype(3) functions are broken</title>
<updated>2007-10-13T16:28:22Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2007-10-13T16:28:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=367ed4e13d697ceb415183d8a7acddf5f707667c'/>
<id>urn:sha1:367ed4e13d697ceb415183d8a7acddf5f707667c</id>
<content type='text'>
for wide characters locales in the argument range &gt;= 0x80 - they may
return false positives.

Example 1: for UTF-8 locale we currently have:
iswspace(0xA0)==1 and isspace(0xA0)==1
(because iswspace() and isspace() are the same code)
but must have
iswspace(0xA0)==1 and isspace(0xA0)==0
(because there is no such character and all others in the range
0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte
range because our internal wchar_t representation for UTF-8 is UCS-4).

Example 2: for all wide character locales isalpha(arg) when arg &gt; 0xFF may
return false positives (must be 0).
(because iswalpha() and isalpha() are the same code)

This change address this issue separating single byte and wide ctype
and also fix iswascii() (currently iswascii() is broken for
arguments &gt; 0xFF).
This change is 100% binary compatible with old binaries.

Reviewied by: i18n@
</content>
</entry>
<entry>
<title>Move some internal macros and inlines from ctype.h to a new file, _ctype.h,</title>
<updated>2004-08-12T09:33:47Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2004-08-12T09:33:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=16133e1530309622f8593c1411f7c4ed1847e672'/>
<id>urn:sha1:16133e1530309622f8593c1411f7c4ed1847e672</id>
<content type='text'>
which has been repo-copied from ctype.h. This will allow us to remove
namespace pollution from &lt;wctype.h&gt; and to make wcwidth() an inline function
without introducing more pollution.
</content>
</entry>
</feed>
