Home | History | Annotate | Download | only in src

Lines Matching defs:String

24  * A class representing a small string of document content consisting of text,
37 public static DocString text(String str) {
45 public static DocString format(String format, Object... args) {
61 public static DocString image(URI uri, String alt) {
66 * Append literal text to the given doc string.
69 public DocString append(String text) {
75 * Append formatted text to the given doc string.
78 public DocString appendFormat(String format, Object... args) {
79 append(String.format(format, args));
89 * Adorn the given string to indicate it represents something added relative
93 DocString string = new DocString();
94 string.mStringBuilder.append("<span class=\"added\">");
95 string.mStringBuilder.append(str.html());
96 string.mStringBuilder.append("</span>");
97 return string;
101 * Adorn the given string to indicate it represents something added relative
104 public static DocString added(String str) {
109 * Adorn the given string to indicate it represents something removed relative
113 DocString string = new DocString();
114 string.mStringBuilder.append("<span class=\"removed\">");
115 string.mStringBuilder.append(str.html());
116 string.mStringBuilder.append("</span>");
117 return string;
121 * Adorn the given string to indicate it represents something removed relative
124 public static DocString removed(String str) {
169 public DocString appendImage(URI uri, String alt) {
178 public DocString appendThumbnail(URI uri, String alt) {
188 * Convenience function for constructing a URI from a string with a uri
191 public static URI uri(String uriString) {
200 * Convenience function for constructing a URI from a formatted string with
203 public static URI formattedUri(String format, Object... args) {
204 return uri(String.format(format, args));
210 public String html() {