/
77.txt
102 lines (74 loc) · 4.11 KB
/
77.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[12] [DFN[[RUBYB[文字列]@en[string]]]]は、[[符号位置]]の[RUBYB[[[列]]]@en[sequence]]です
[SRC[>>11]]。
* 仕様書
[REFS[
- [11] [CITE@en-US[Encoding Standard]] ([TIME[2015-08-19 23:19:23 +09:00]] 版) <https://encoding.spec.whatwg.org/#string>
]REFS]
* 用語
[14] [[Encoding Standard]] は[[符号位置]]の列としていますが、
その他の文脈では[[Unicodeスカラー値]]の列が[[文字列]]と呼ばれることもあります。
多くの場合、どちらであるかは曖昧です。
[13] 現代では普通は[[文字列]]というと、
[DFN[[RUBYB[Unicode文字列]@en[Unicode string]]]]のことを指しています。
他の[[文字コード]]の[[文字列]]が使われることはほとんどなくなってきています。
* 関連
[15] 歴史的にはよく[[バイト列]]や[[オクテット列]]と混同されていました。
現代の[[プログラミング言語]]などでは明確に区別するのが普通ですが、
暗黙のうちに[[型変換]]される場合もあり、取り扱いには注意が必要です。
[[プロトコル]]の[[仕様書]]などでは現在でも区別が不明瞭なことがあり、
注意が必要です。
* メモ
[1]
>
:(298) (文字)列 [(character) string]:
[[文字]]の[[並び]]。[SRC[[[JIS X 4151]]-1992 3.]]
[2] [CITE[JavaScript の文字列連結ベンチマーク - ぐま あーかいぶ]]
( ([TIME[2014-01-18 11:58:17 +09:00]] 版))
<http://archive.guma.jp/2010/11/javascript-1.html>
[3] [CITE[JavaScript - 文字列の結合方法による速度差 - Qiita]]
( ([TIME[2014-02-17 08:46:38 +09:00]] 版))
<http://qiita.com/se_ino/items/0322e0820badf2c020be>
[4] [CITE[文字列の結合 - ひきメモ]]
( ([TIME[2014-02-17 08:47:18 +09:00]] 版))
<http://d.hatena.ne.jp/yumimue/20071226/1198670253>
[5] [CITE@ja[文字列操作の速度比較 - misc.log]]
( ([TIME[2014-02-17 08:47:30 +09:00]] 版))
<http://backyard.hatenablog.com/entry/20041202/1173749287>
[6] [CITE[理由がない限り、Array.join("") による文字列連結は使わないほうがいいみたい - latest log]]
( ([TIME[2014-02-17 08:48:40 +09:00]] 版))
<http://d.hatena.ne.jp/uupaa/20090828/1251418928>
[7] ( ([TIME[2011-08-20 09:59:56 +09:00]] 版))
<http://ll.jus.or.jp/2011/slide/LT/2011-LL-kuwata.pdf>
[8] [CITE@en[XQuery and XPath Data Model 3.0]]
( ([TIME[2014-04-08 07:00:06 +09:00]] 版))
<http://www.w3.org/TR/xpath-datamodel-3/#dt-string>
[9] [CITE@EN[XPath and XQuery Functions and Operators 3.0]]
( ([TIME[2014-04-08 07:02:07 +09:00]] 版))
<http://www.w3.org/TR/xpath-functions-3/#string>
[10] [CITE@en[Character Model for the World Wide Web 1.0: Fundamentals]]
( ([TIME[2005-02-15 14:24:00 +09:00]] 版))
<http://www.w3.org/TR/charmod/#def-character-string>
[16] [CITE@en[Editorial: start using the Infra Standard]]
([[annevk]]著, [TIME[2016-11-18 20:21:54 +09:00]])
<https://github.com/whatwg/encoding/commit/a26f76889bf393999e9caad84a3647ab09c39e09>
[17] [CITE@en[XQuery and XPath Data Model 3.1]]
([TIME[2017-03-20 07:26:25 +09:00]])
<https://www.w3.org/TR/2017/REC-xpath-datamodel-31-20170321/#dt-string>
[18] [CITE@EN[XPath and XQuery Functions and Operators 3.1]]
([TIME[2017-03-21 16:02:06 +09:00]])
<https://www.w3.org/TR/2017/REC-xpath-functions-31-20170321/#string>
[19] [CITE@en[Define JavaScript string and scalar value string]]
([[annevk]]著, [TIME[2017-03-27 16:01:49 +09:00]])
<https://github.com/whatwg/infra/commit/f1be763cfba23d2fc780b35403074c599e69616e>
[20] [CITE@en[String byte escapes seem wrong · Issue #577 · WebAssembly/spec]]
([TIME[2017-10-14 22:43:24 +09:00]])
<https://github.com/WebAssembly/spec/issues/577>
[21] [CITE@en[Strings on the Web: Language and Direction Metadata]]
([TIME[2019-06-11 19:43:37 +09:00]])
<https://w3c.github.io/string-meta/>
[22] [CITE@en[Strings on the Web: Language and Direction Metadata]]
([TIME[2019-06-11 19:53:35 +09:00]])
<https://www.w3.org/TR/2019/WD-string-meta-20190611/>
[23] [CITE@en[Strings on the Web: Language and Direction Metadata]]
([TIME[2019-04-11 01:13:59 +09:00]])
<https://www.w3.org/TR/2019/WD-string-meta-20190416/>