Unicode:呃! [英] Unicode: ugh!

查看:113
本文介绍了Unicode:呃!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Unicode标准在3.9节中说明了这一点:


"例如,字符串被定义为

C语言中指向char的指针,并且通常以NULL

字符终止。


你会认为写标准的人会费心阅读

并了解他们引用的其他标准。

-

只有一件事会让他们不再讨厌你。 >
那就是你做得很好,他们不能忽视你。

我告诉他们你是最好的。现在你该死的好了。

- 奥森斯科特卡,_Ender'的游戏_

The Unicode standard says this in section 3.9:

"For example, a string is defined as a pointer to char in the
C language, and is conventionally terminated with a NULL
character."

You''d think folks writing standards would bother to properly read
and understand the other standards that they reference.
--
"There''s only one thing that will make them stop hating you.
And that''s being so good at what you do that they can''t ignore you.
I told them you were the best. Now you damn well better be."
--Orson Scott Card, _Ender''s Game_

推荐答案

Ben Pfaff写道:
Ben Pfaff wrote:
Unicode标准在3.9节中说明了这一点:

"例如,一个字符串被定义为
C语言中指向char的指针,并且通常以NULL
字符结束。

你会认为写标准的人会费心阅读
并理解他们引用的其他标准。
The Unicode standard says this in section 3.9:

"For example, a string is defined as a pointer to char in the
C language, and is conventionally terminated with a NULL
character."

You''d think folks writing standards would bother to properly read
and understand the other standards that they reference.




....你的C问题是......


;-) ;-)


--ag

-

Artie Gold - 德克萨斯州奥斯汀
http://goldsays.blogspot.com

你不能亲吻*除非你MISS **

[* - 保持简单,愚蠢。 ** - 简单,愚蠢。]



....and your C question is...

;-) ;-)

--ag

--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
"You can''t KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]


" Ben Pfaff"写道:
"Ben Pfaff" writes:
Unicode标准在第3.9节中说明了这一点:

"例如,字符串被定义为
C语言,并且通常以NULL
字符结束。

你会认为写标准的人会费心阅读
并理解其他标准他们参考了。
The Unicode standard says this in section 3.9:

"For example, a string is defined as a pointer to char in the
C language, and is conventionally terminated with a NULL
character."

You''d think folks writing standards would bother to properly read
and understand the other standards that they reference.




您的投诉是什么? ASCII null应拼写为NUL?



What''s your complaint? That the ASCII null should be spelled NUL?


" osmium" < R 1 ******** @ comcast.net>写道:
"osmium" <r1********@comcast.net> writes:
" Ben Pfaff"写道:
"Ben Pfaff" writes:
Unicode标准在第3.9节中说明了这一点:

"例如,字符串被定义为
C语言,并且通常以NULL
字符结束。

你会认为写标准的人会费心阅读
并理解其他标准他们参考了。
The Unicode standard says this in section 3.9:

"For example, a string is defined as a pointer to char in the
C language, and is conventionally terminated with a NULL
character."

You''d think folks writing standards would bother to properly read
and understand the other standards that they reference.



你的抱怨是什么?这个ASCII null应拼写为NUL吗?



What''s your complaint? That the ASCII null should be spelled NUL?




这是字符串的定义:


字符串是连续的字符序列终止

由第一个空字符组成。


字符串不是指向char的指针:它是一个序列

个字符。它不是常规的。由null

字符终止,它总是以一个终止(否则它不是一个

字符串)。在C中,null终止符不是NULL字符(NULL

是空指针常量);它也不是NUL字符,

因为它假设是一个ASCII字符集; null终结符

实际上是null character,如上所述。


令人惊讶的是,他们设法错误了多少单个

的句子。

-

调试的次数是首先编写代码的两倍。

因此,如果您尽可能巧妙地编写代码,那么,根据定义,您可能不够聪明,无法调试它。

--Brian Kernighan



Here is the definition of a string:

A string is a contiguous sequence of characters terminated
by and including the first null character.

A string is not a pointer to char: it is a sequence of
characters. It is not "conventionally" terminated by a null
character, it is always terminated by one (otherwise it is not a
string). In C, the null terminator is not a NULL character (NULL
is a null pointer constant); it is not the NUL character either,
because that assumes an ASCII character set; the null terminator
is in fact the "null character", as quoted above.

It''s amazing how much they managed to get wrong in a single
sentence.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan


这篇关于Unicode:呃!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆