Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a85fe7

Browse files
author
Douglas Crockford
committed
comments
1 parent0cdef7d commit1a85fe7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎Kim.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ of this software and associated documentation files (the "Software"), to deal
5555
* A kim object can be constructed from an ordinary UTF-16 string, or from a
5656
* byte array. A kim object can produce a UTF-16 string.
5757
*
58-
* As with UTF-8, Kim can be sorted, and it is possible to detect character
59-
* boundaries within a byte sequence. UTF-8 is one of the world's great
60-
* inventions. While Kim is more efficient, it is not clear that it is worth
61-
* the expense of transition.
58+
* As with UTF-8, it is possible to detect character boundaries within a byte
59+
* sequence. UTF-8 is one of the world's great inventions. While Kim is more
60+
* efficient, it is not clear that it is worth the expense of transition.
6261
*
6362
* @version 2013-04-18
6463
*/
@@ -70,7 +69,7 @@ public class Kim {
7069
privatebyte[]bytes =null;
7170

7271
/**
73-
* The kim's hashcode, conforming to Java's hashcoderecommendations.
72+
* The kim's hashcode, conforming to Java's hashcodeconventions.
7473
*/
7574
privateinthashcode =0;
7675

@@ -158,7 +157,7 @@ public Kim(String string) throws JSONException {
158157
this.length =0;
159158

160159
// First pass: Determine the length of the kim, allowing for the UTF-16
161-
// to UTF-32 conversion, and then the UTF-32 tokim conversion.
160+
// to UTF-32 conversion, and then the UTF-32 toKim conversion.
162161

163162
if (stringLength >0) {
164163
for (inti =0;i <stringLength;i +=1) {
@@ -320,7 +319,7 @@ public boolean equals(Object obj) {
320319
}
321320

322321
/**
323-
*
322+
* Get a byte from a kim.
324323
* @param at
325324
* The position of the byte. The first byte is at 0.
326325
* @return The byte.
@@ -348,7 +347,7 @@ public int hashCode() {
348347
*
349348
* @return The string. A kim memoizes its string representation.
350349
* @throws JSONException
351-
* if the kim isinvalid.
350+
* if the kim isnot valid.
352351
*/
353352
publicStringtoString()throwsJSONException {
354353
if (this.string ==null) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp