473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Character classification: novice question

I'm a little confused about this:

BOOL bTest=_istpunct(147);

In my ASCII chart, code 147 represents an open quote symbol, a "curled"
quote. But bTest is FALSE (0). It's false whether or not I have _UNICODE
defined. But isn't the character referred to by 147 a punctuation symbol?

Thanks for any insight,
Brad
Jul 22 '05 #1
2 1295
On Fri, 14 May 2004 01:24:36 GMT, "Internet Citizen"
<in*************@earthlink.net> wrote in comp.lang.c++:
I'm a little confused about this:

BOOL bTest=_istpunct(147);
Whatever _istpunct() is, is not a part of the C++ language or standard
library. It is some platform-specific extension supplied by your
compiler/operating system combination.
In my ASCII chart, code 147 represents an open quote symbol, a "curled"
Your ASCII chart is wrong. In fact, it is horribly broken. ASCII
(American Standard Code for Information Interchange) is a 7 bit code.
It defines values from 0 through 127 inclusive. It never has defined
147, and never will.
quote. But bTest is FALSE (0). It's false whether or not I have _UNICODE
defined. But isn't the character referred to by 147 a punctuation symbol?
_UNICODE is also something not defined by the C++ language. Big hint
here, almost everything that starts with a leading underscore is some
non-standard extension.
Thanks for any insight,
Brad


We can't help you here, the C++ language itself doesn't define the
things you are talking about. You need to ask in a platform specific
group. Judging from the headers on your post, some place like
news:comp.os.ms-windows.win32.programmer or one of Microsoft's support
groups in the news:microsoft.public.* family.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2
Thanks Jack, that does shed a lot of light.
Brad

"Jack Klein" <ja*******@spamcop.net> wrote in message
news:5s********************************@4ax.com...
On Fri, 14 May 2004 01:24:36 GMT, "Internet Citizen"
<in*************@earthlink.net> wrote in comp.lang.c++:
I'm a little confused about this:

BOOL bTest=_istpunct(147);
Whatever _istpunct() is, is not a part of the C++ language or standard
library. It is some platform-specific extension supplied by your
compiler/operating system combination.
In my ASCII chart, code 147 represents an open quote symbol, a "curled"


Your ASCII chart is wrong. In fact, it is horribly broken. ASCII
(American Standard Code for Information Interchange) is a 7 bit code.
It defines values from 0 through 127 inclusive. It never has defined
147, and never will.
quote. But bTest is FALSE (0). It's false whether or not I have _UNICODE
defined. But isn't the character referred to by 147 a punctuation

symbol?
_UNICODE is also something not defined by the C++ language. Big hint
here, almost everything that starts with a leading underscore is some
non-standard extension.
Thanks for any insight,
Brad


We can't help you here, the C++ language itself doesn't define the
things you are talking about. You need to ask in a platform specific
group. Judging from the headers on your post, some place like
news:comp.os.ms-windows.win32.programmer or one of Microsoft's support
groups in the news:microsoft.public.* family.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: lawrence | last post by:
I'm bad at regular expressions. Is this how I would look for any set of characters that go more than 60 characters without a white space? ..{60} Also, does this match a block of PHP in an...
5
by: Marian | last post by:
Hi, I am totaly novice in .NET and I am studying a book about this. There was mentioned "assembly". I did not understand, how function does it has . I would like to know the exact run of code...
21
by: aegis | last post by:
7.4#1 states The header <ctype.h> declares several functions useful for classifying and mapping characters.166) In all cases the argument is an int, the value of which shall be representable as an...
27
by: jacob navia | last post by:
As Richard Bos rightly pointed out, I had left in my classification of types the C99 types Complex and boolean. Here is a new classification. Those are not mentioned in the classification of...
6
by: Grant Robertson | last post by:
I am interested in including classification info in metadata. I am aware of the Dublin Core and XMP. However, neither of these appear to specify exactly how the classification data should be...
9
by: Kelii | last post by:
I've been trying to get this piece to work for a few hours, but have given up. I hope someone out there can help, I think the issue is relatively straightforward, but being a novice, I'm stumped....
4
by: Basilisk96 | last post by:
This topic is difficult to describe in one subject sentence... Has anyone come across the application of the simple statement "if (object1's attributes meet some conditions) then (set object2's...
4
by: Evan Klitzke | last post by:
Hi all, What frameworks are there available for doing pattern classification? I'm generally interested in the problem of mapping some sort of input to one or more categories. For example, I want...
3
by: alex lee | last post by:
im using a backpropagation classification C code which is written by C. K Mohan on 1997. i was wondering how was the input file for the coding. i would to do a classification experimental by using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.