Skip to content

Commit

Permalink
Explain character.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Mar 14, 2016
1 parent 485bd25 commit 29f74d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xstream-distribution/src/content/benchmarks.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ <h2 id="nameCoder">Name Coder Benchmark</h2>
does not contain elements with invalid XML names, because the name of the class types and members are either
conforming or have been aliased.</dd>
<dt>Dollar Coding</dt>
<dd>An implementation that uses String.replace to replace any dollar sign with '&#xb7;', a valid character
normally not used for Java identifiers. In typical Java code there are no other invalid characters used for Java
identifiers, however, Java allows identifiers to contain a wide range of UTF-8 characters and the JVM has even
less restrictions.</dd>
<dd>An implementation that uses String.replace to replace any dollar sign with '&#xb7;' (middle dot), a valid
character normally not used for Java identifiers. In typical Java code there are no other invalid characters used
for Java identifiers, however, Java allows identifiers to contain a wide range of UTF-8 characters and the JVM
has even less restrictions.</dd>
<dt>Escaped Underscore Coding</dt>
<dd>An implementation that uses a StringBuilder to create the XML name by replacing any dollar sign with '_-' and
escapes every plain underscore with two ones. The implementation will therefore only use characters in the
Expand Down

0 comments on commit 29f74d0

Please sign in to comment.