| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,10 +55,9 @@ of this software and associated documentation files (the "Software"), to deal | |||
| 55 | 55 | * A kim object can be constructed from an ordinary UTF-16 string, or from a | |
| 56 | 56 | * byte array. A kim object can produce a UTF-16 string. | |
| 57 | 57 | * | |
| 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. | ||
| 62 | 61 | * | |
| 63 | 62 | * @version 2013-04-18 | |
| 64 | 63 | */ | |
@@ -70,7 +69,7 @@ public class Kim { | |||
| 70 | 69 | private byte[] bytes = null; | |
| 71 | 70 | ||
| 72 | 71 | /** | |
| 73 | - * The kim's hashcode, conforming to Java's hashcode recommendations. | ||
| 72 | + * The kim's hashcode, conforming to Java's hashcode conventions. | ||
| 74 | 73 | */ | |
| 75 | 74 | private int hashcode = 0; | |
| 76 | 75 | ||
@@ -158,7 +157,7 @@ public Kim(String string) throws JSONException { | |||
| 158 | 157 | this.length = 0; | |
| 159 | 158 | ||
| 160 | 159 | // First pass: Determine the length of the kim, allowing for the UTF-16 | |
| 161 | - // to UTF-32 conversion, and then the UTF-32 to kim conversion. | ||
| 160 | + // to UTF-32 conversion, and then the UTF-32 to Kim conversion. | ||
| 162 | 161 | ||
| 163 | 162 | if (stringLength > 0) { | |
| 164 | 163 | for (int i = 0; i < stringLength; i += 1) { | |
@@ -320,7 +319,7 @@ public boolean equals(Object obj) { | |||
| 320 | 319 | } | |
| 321 | 320 | ||
| 322 | 321 | /** | |
| 323 | - * | ||
| 322 | + * Get a byte from a kim. | ||
| 324 | 323 | * @param at | |
| 325 | 324 | * The position of the byte. The first byte is at 0. | |
| 326 | 325 | * @return The byte. | |
@@ -348,7 +347,7 @@ public int hashCode() { | |||
| 348 | 347 | * | |
| 349 | 348 | * @return The string. A kim memoizes its string representation. | |
| 350 | 349 | * @throws JSONException | |
| 351 | - * if the kim is invalid. | ||
| 350 | + * if the kim is not valid. | ||
| 352 | 351 | */ | |
| 353 | 352 | public String toString() throws JSONException { | |
| 354 | 353 | if (this.string == null) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments