By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,261 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,261 IT Pros & Developers. It's quick & easy.

Lexicographic ordering of punctuation marks

P: n/a
What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?

--Masood

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ma**********@lycos.com writes:
What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?


There is none. C requires the digits '0' through '9' to be
consecutive; everything else is implementation-specific.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 23 '05 #2

P: n/a

<ma**********@lycos.com> skrev i en meddelelse
news:11*********************@o13g2000cwo.googlegro ups.com...
What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?

--Masood

There is none. Ordering depends on the locale used and will vary from
country to country. For the standard C-locale, my guess is that the ordering
depends on the underlying character set. For ASCII and related codepages, it
will most likely be numerical order.

/Peter
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.