Home | History | Annotate | Download | only in ahat

Lines Matching defs:string

23  * A class representing a small string of document content consisting of text,
36 public static DocString text(String str) {
44 public static DocString format(String format, Object... args) {
60 public static DocString image(URI uri, String alt) {
65 * Append literal text to the given doc string.
68 public DocString append(String text) {
74 * Append formatted text to the given doc string.
77 public DocString appendFormat(String format, Object... args) {
78 append(String.format(format, args));
88 * Adorn the given string to indicate it represents something added relative
92 DocString string = new DocString();
93 string.mStringBuilder.append("<span class=\"added\">");
94 string.mStringBuilder.append(str.html());
95 string.mStringBuilder.append("</span>");
96 return string;
100 * Adorn the given string to indicate it represents something added relative
103 public static DocString added(String str) {
108 * Adorn the given string to indicate it represents something removed relative
112 DocString string = new DocString();
113 string.mStringBuilder.append("<span class=\"removed\">");
114 string.mStringBuilder.append(str.html());
115 string.mStringBuilder.append("</span>");
116 return string;
120 * Adorn the given string to indicate it represents something removed relative
123 public static DocString removed(String str) {
135 DocString string = new DocString();
137 string.append(DocString.removed("del"));
139 string.appendFormat("%,14d", size);
141 return string;
185 public DocString appendImage(URI uri, String alt) {
194 public DocString appendThumbnail(URI uri, String alt) {
204 * Convenience function for constructing a URI from a string with a uri
207 public static URI uri(String uriString) {
216 * Convenience function for constructing a URI from a formatted string with
219 public static URI formattedUri(String format, Object... args) {
220 return uri(String.format(format, args));
226 public String html() {