digitalmars.D - isalpha for beyond ASCII?
- James Dunne (6/6) Nov 12 2005 Looking at the isalpha function in std.ctype, it seems it's only
- James Dunne (5/12) Nov 12 2005 *browses through dmd/src/dmd ...*
- Charles (5/18) Nov 12 2005 of?
- James Dunne (2/31) Nov 12 2005
- David L. Davis (11/17) Nov 12 2005 Hauke Duden's unichar.d that he released in June 2004 has a "bool
- James Dunne (8/33) Nov 12 2005 Apparently there is also a super-secret hidden feature of phobos...
- Walter Bright (5/9) Nov 13 2005 It's not in by default because isalpha() and company tend to be used in
- James Dunne (6/31) Nov 13 2005 Hm! Quite complete, if I do say so. But a bit too complete for my
Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?
Nov 12 2005
James Dunne wrote:Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?*browses through dmd/src/dmd ...* *peeks at dmd/src/dmd/unialpha.c* =-O I'll be converting this to D right meow. Any caveats I should be aware of?
Nov 12 2005
I'll be converting this to D right meow. Any caveats I should be awareof? Hehe , is that a super trooper reference :) ? "James Dunne" <james.jdunne gmail.com> wrote in message news:dl5cep$9m4$1 digitaldaemon.com...James Dunne wrote:of?Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?*browses through dmd/src/dmd ...* *peeks at dmd/src/dmd/unialpha.c* =-O I'll be converting this to D right meow. Any caveats I should be aware
Nov 12 2005
Charles wrote:Am I sayin meow?I'll be converting this to D right meow. Any caveats I should be awareof? Hehe , is that a super trooper reference :) ?"James Dunne" <james.jdunne gmail.com> wrote in message news:dl5cep$9m4$1 digitaldaemon.com...James Dunne wrote:of?Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?*browses through dmd/src/dmd ...* *peeks at dmd/src/dmd/unialpha.c* =-O I'll be converting this to D right meow. Any caveats I should be aware
Nov 12 2005
In article <dl5b96$8m7$1 digitaldaemon.com>, James Dunne says...Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?Hauke Duden's unichar.d that he released in June 2004 has a "bool charIsAlpha(dchar chr)" function that may fit the bill. Here's the release post and a link to the unichar.zip: http://www.digitalmars.com/d/archives/digitalmars/D/3868.html http://www.hazardarea.com/unichar.zip David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Nov 12 2005
David L. Davis wrote:In article <dl5b96$8m7$1 digitaldaemon.com>, James Dunne says...Apparently there is also a super-secret hidden feature of phobos... std.uni! There is a nearly identical function in there from the compiler's internal source code called isUniAlpha. In my project, I'm using my own modified version of std.ctype which includes isUniAlpha and combines it with the isalpha, isalnum, etc. functions. Why not provide this functionality in std.ctype by default? std.ctype functions work with dchars anyway...Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?Hauke Duden's unichar.d that he released in June 2004 has a "bool charIsAlpha(dchar chr)" function that may fit the bill. Here's the release post and a link to the unichar.zip: http://www.digitalmars.com/d/archives/digitalmars/D/3868.html http://www.hazardarea.com/unichar.zip David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Nov 12 2005
"James Dunne" <james.jdunne gmail.com> wrote in message news:dl6442$tbj$2 digitaldaemon.com...In my project, I'm using my own modified version of std.ctype which includes isUniAlpha and combines it with the isalpha, isalnum, etc. functions. Why not provide this functionality in std.ctype by default? std.ctype functions work with dchars anyway...It's not in by default because isalpha() and company tend to be used in highly speed critical applications that often deal only with ASCII. Hence, it makes sense to split it into two functions.
Nov 13 2005
David L. Davis wrote:In article <dl5b96$8m7$1 digitaldaemon.com>, James Dunne says...Hm! Quite complete, if I do say so. But a bit too complete for my needs, and also comes with its own license with a request for credit. That's cool with me if I had chosen to go with it, but I don't think I need that much. std.uni.isUniAlpha is good enough (plus my own mods). Thanks though!Looking at the isalpha function in std.ctype, it seems it's only available for ASCII code support which is fine for most purposes. However, I'd like to find something a bit more complete than that, checking alpha characters (dchars) for languages in say, Greek, Russian, Japanese, etc. Does this make any sense? Is there anything existing out there for D that can handle this job?Hauke Duden's unichar.d that he released in June 2004 has a "bool charIsAlpha(dchar chr)" function that may fit the bill. Here's the release post and a link to the unichar.zip: http://www.digitalmars.com/d/archives/digitalmars/D/3868.html http://www.hazardarea.com/unichar.zip David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
Nov 13 2005