| /external/guava/android/guava/src/com/google/common/html/ |
| D | HtmlEscapers.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 15 package com.google.common.html; 18 import com.google.common.escape.Escaper; 22 * {@code Escaper} instances suitable for strings to be included in HTML attribute values and 24 * systems and high-level APIs that provide autoescaping. 25 * One Google-authored templating system available for external use is <a 28 * <p>HTML escaping is particularly tricky: For example, <a href="http://goo.gl/5TgZb">some 29 * elements' text contents must not be HTML escaped</a>. As a result, it is impossible to escape an 30 * HTML document correctly without domain-specific knowledge beyond what {@code HtmlEscapers} 31 * provides. We strongly encourage the use of HTML templating systems. [all …]
|
| /external/guava/guava/src/com/google/common/html/ |
| D | HtmlEscapers.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 15 package com.google.common.html; 18 import com.google.common.escape.Escaper; 22 * {@code Escaper} instances suitable for strings to be included in HTML attribute values and 24 * systems and high-level APIs that provide autoescaping. 25 * One Google-authored templating system available for external use is <a 28 * <p>HTML escaping is particularly tricky: For example, <a href="http://goo.gl/5TgZb">some 29 * elements' text contents must not be HTML escaped</a>. As a result, it is impossible to escape an 30 * HTML document correctly without domain-specific knowledge beyond what {@code HtmlEscapers} 31 * provides. We strongly encourage the use of HTML templating systems. [all …]
|
| /external/guava/android/guava/src/com/google/common/net/ |
| D | UrlEscapers.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 import com.google.common.escape.Escaper; 21 * {@code Escaper} instances suitable for strings to be included in particular sections of URLs. 23 * <p>If the resulting URLs are inserted into an HTML or XML document, they will require additional 24 * escaping with {@link com.google.common.html.HtmlEscapers} or {@link 37 // that are considered authoritative for the behavior of that escaper. 39 static final String URL_FORM_PARAMETER_OTHER_SAFE_CHARS = "-_.*"; 42 "-._~" // Unreserved characters. 47 * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a 49 * with the UTF-8 character encoding. The caller is responsible for <a [all …]
|
| /external/guava/guava/src/com/google/common/net/ |
| D | UrlEscapers.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 import com.google.common.escape.Escaper; 21 * {@code Escaper} instances suitable for strings to be included in particular sections of URLs. 23 * <p>If the resulting URLs are inserted into an HTML or XML document, they will require additional 24 * escaping with {@link com.google.common.html.HtmlEscapers} or {@link 37 // that are considered authoritative for the behavior of that escaper. 39 static final String URL_FORM_PARAMETER_OTHER_SAFE_CHARS = "-_.*"; 42 "-._~" // Unreserved characters. 47 * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a 49 * with the UTF-8 character encoding. The caller is responsible for <a [all …]
|
| /external/jsilver/src/com/google/clearsilver/jsilver/syntax/ |
| D | VarOptimizer.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 71 * <cs? escape:"html" ?> 87 * <cs? escape:"html" ?> 99 * <cs? escape:"html" ?> 105 * both the html escaper and the url escaping function. However ClearSilver treats top-level escaper 111 * <cs? escape:"html" ?> 117 * which fixes the problem because the new url escaper replaces the existing html escaper (rather 121 * escaper by ClearSilver but which does not (currently) have an escaper associated with it. This 125 * <cs? escape:"html" ?> 135 * A list of escaper names that are also exposed as escaping functions (eg, if the "foo" escaper [all …]
|
| /external/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/escaper/ |
| D | HtmlEscaper.java | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 package com.google.api.generator.engine.escaper; 17 import com.google.common.escape.Escaper; 20 public class HtmlEscaper extends Escaper { 24 // five characters by html escaper. We do not directly use guava HtmlEscapers here because 25 // it only escapes`<>&\"'` as specified by HTML 4.01. 26 private static final Escaper charEscaper =
|
| D | MetacharEscaper.java | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 package com.google.api.generator.engine.escaper; 17 import com.google.common.escape.Escaper; 20 public class MetacharEscaper extends Escaper { 23 // Handle escape characters (https://docs.oracle.com/javase/tutorial/java/data/characters.html) 26 private static final Escaper charEscaper =
|
| /external/guava/guava/src/com/google/common/xml/ |
| D | XmlEscapers.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 import com.google.common.escape.Escaper; 22 * {@code Escaper} instances suitable for strings to be included in XML attribute values and 24 * high-level APIs that provide autoescaping. For example, consider <a 28 * outside the ASCII character range. Unlike HTML escaping the XML escapers will not escape 29 * non-ASCII characters to their numeric entity replacements. These XML escapers provide the minimal 33 * href="http://www.w3.org/TR/2008/REC-xml-20081126/#charsets">2.2</a> and <a 34 * href="http://www.w3.org/TR/2008/REC-xml-20081126/#syntax">2.4</a> of the XML specification. 49 // that are considered authoritative for the behavior of that escaper. 52 * Returns an {@link Escaper} instance that escapes special characters in a string so it can [all …]
|
| /external/guava/android/guava/src/com/google/common/xml/ |
| D | XmlEscapers.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 import com.google.common.escape.Escaper; 22 * {@code Escaper} instances suitable for strings to be included in XML attribute values and 24 * high-level APIs that provide autoescaping. For example, consider <a 28 * outside the ASCII character range. Unlike HTML escaping the XML escapers will not escape 29 * non-ASCII characters to their numeric entity replacements. These XML escapers provide the minimal 33 * href="http://www.w3.org/TR/2008/REC-xml-20081126/#charsets">2.2</a> and <a 34 * href="http://www.w3.org/TR/2008/REC-xml-20081126/#syntax">2.4</a> of the XML specification. 49 // that are considered authoritative for the behavior of that escaper. 52 * Returns an {@link Escaper} instance that escapes special characters in a string so it can [all …]
|
| /external/turbine/java/com/google/common/escape/ |
| D | SourceCodeEscapers.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * A factory for Escaper instances used to escape strings for safe use in Java. 25 * <p>This is a subset of source code escapers that are in the process of being open-sourced as part 28 // TODO(cushon): migrate to the guava version once it is open-sourced, and delete this 33 // that are considered authoritative for the behavior of that escaper. 42 * Returns an {@link Escaper} instance that escapes special characters in a string so it can 46 * <p>See: <a href="https://docs.oracle.com/javase/specs/jls/se14/html/jls-3.html#jls-3.10.6" >The 68 // This escaper does not produce octal escape sequences. See: 69 // https://docs.oracle.com/javase/specs/jls/se14/html/jls-3.html#jls-3.10.6
|
| /external/guava/guava/src/com/google/common/escape/ |
| D | Escaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code 31 * <p>An {@code Escaper} instance is required to be stateless, and safe when used concurrently by 45 * implementing new escapers. It is strongly recommended that when implementing a new escaper you 50 * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create 60 public abstract class Escaper { class 63 protected Escaper() {} in Escaper() method in Escaper 69 * escaper implementation. 72 * <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> 73 * correctly, including surrogate character pairs. If the input is badly formed the escaper [all …]
|
| D | UnicodeEscaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 23 * An {@link Escaper} that converts literal text into a format safe for inclusion in a particular 27 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code 34 * href="http://en.wikipedia.org/wiki/UTF-16">UTF16</a> characters in isolation and may not cope 39 * correctly if you are considering implementing a new escaper you should favor using UnicodeEscaper 46 * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create 54 public abstract class UnicodeEscaper extends Escaper { 89 * href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> before calling this method. 91 * <p><b>Note:</b> When implementing an escaper it is a good idea to override this method for 110 * Scans a sub-sequence of characters from a given {@link CharSequence}, returning the index of [all …]
|
| D | CharEscaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code 36 * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create 44 public abstract class CharEscaper extends Escaper { 58 // Inlineable fast-path loop which hands off to escapeSlow() only if needed in escape() 74 * than a one-character array containing the character itself. This enables the escaping algorithm 77 * <p>An escaper is expected to be able to deal with any {@code char} value, so this method should 119 int charsSkipped = index - lastEscape; in escapeSlow() 126 destSize = sizeNeeded + DEST_PAD_MULTIPLIER * (slen - index); in escapeSlow() 145 int charsLeft = slen - lastEscape; in escapeSlow() [all …]
|
| D | package-info.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 17 * {@link Escaper}. 20 * com.google.common.html.HtmlEscapers} in {@code com.google.common.html}, {@link 24 * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
|
| D | ArrayBasedUnicodeEscaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 30 * <p>A good example of usage of this class is for HTML escaping where the replacement array 31 * contains information about the named HTML entities such as {@code &} and {@code "} while 37 * to create multiple escaper instances that have the same character replacement mapping consider 106 safeMax = -1; in ArrayBasedUnicodeEscaper() 112 // This is a bit of a hack but lets us do quicker per-character checks in in ArrayBasedUnicodeEscaper() 120 // If we clip the safe range used during the per-character tests so it is in ArrayBasedUnicodeEscaper() 131 // The safe range is non-empty and contains values below the surrogate in ArrayBasedUnicodeEscaper() 134 this.safeMaxChar = (char) Math.min(safeMax, Character.MIN_HIGH_SURROGATE - 1); in ArrayBasedUnicodeEscaper()
|
| /external/guava/android/guava/src/com/google/common/escape/ |
| D | Escaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code 31 * <p>An {@code Escaper} instance is required to be stateless, and safe when used concurrently by 45 * implementing new escapers. It is strongly recommended that when implementing a new escaper you 50 * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create 60 public abstract class Escaper { class 63 protected Escaper() {} in Escaper() method in Escaper 69 * escaper implementation. 72 * <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> 73 * correctly, including surrogate character pairs. If the input is badly formed the escaper [all …]
|
| D | UnicodeEscaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 23 * An {@link Escaper} that converts literal text into a format safe for inclusion in a particular 27 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code 34 * href="http://en.wikipedia.org/wiki/UTF-16">UTF16</a> characters in isolation and may not cope 39 * correctly if you are considering implementing a new escaper you should favor using UnicodeEscaper 46 * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create 54 public abstract class UnicodeEscaper extends Escaper { 89 * href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> before calling this method. 91 * <p><b>Note:</b> When implementing an escaper it is a good idea to override this method for 110 * Scans a sub-sequence of characters from a given {@link CharSequence}, returning the index of [all …]
|
| D | CharEscaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code 36 * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create 44 public abstract class CharEscaper extends Escaper { 58 // Inlineable fast-path loop which hands off to escapeSlow() only if needed in escape() 74 * than a one-character array containing the character itself. This enables the escaping algorithm 77 * <p>An escaper is expected to be able to deal with any {@code char} value, so this method should 119 int charsSkipped = index - lastEscape; in escapeSlow() 126 destSize = sizeNeeded + DEST_PAD_MULTIPLIER * (slen - index); in escapeSlow() 145 int charsLeft = slen - lastEscape; in escapeSlow() [all …]
|
| D | package-info.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 17 * {@link Escaper}. 20 * com.google.common.html.HtmlEscapers} in {@code com.google.common.html}, {@link 24 * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
|
| D | ArrayBasedUnicodeEscaper.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 30 * <p>A good example of usage of this class is for HTML escaping where the replacement array 31 * contains information about the named HTML entities such as {@code &} and {@code "} while 37 * to create multiple escaper instances that have the same character replacement mapping consider 106 safeMax = -1; in ArrayBasedUnicodeEscaper() 112 // This is a bit of a hack but lets us do quicker per-character checks in in ArrayBasedUnicodeEscaper() 120 // If we clip the safe range used during the per-character tests so it is in ArrayBasedUnicodeEscaper() 131 // The safe range is non-empty and contains values below the surrogate in ArrayBasedUnicodeEscaper() 134 this.safeMaxChar = (char) Math.min(safeMax, Character.MIN_HIGH_SURROGATE - 1); in ArrayBasedUnicodeEscaper()
|
| /external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
| D | CldrUtility.java | 3 * Copyright (c) 2002-2013, International Business Machines 69 * These need to be consistent with "CLDR-Code-Git-Commit" in tools/cldr-code/pom.xml 71 * <p>If and when "CLDR-Apps-Git-Commit" in tools/cldr-apps/pom.xml becomes usable for the 72 * cldr-apps war file, we may add APPS_SLUG = "CLDR-Apps" here, and in some contexts use 75 public static final String CODE_SLUG = "CLDR-Code"; 77 public static final String GIT_COMMIT_SUFFIX = "-Git-Commit"; 105 public static final UnicodeSet DIGITS = new UnicodeSet("[0-9]").freeze(); 114 * .add("$alpha", "[a-zA-Z]") 115 * .add("$digit", "[0-9]") 116 * .add("$alphanum", "[a-zA-Z0-9]") [all …]
|
| /external/jsilver/src/com/google/clearsilver/jsilver/ |
| D | JSilver.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 74 * jSilver.render("say-hello", data, output); 298 // Strip out whitespace from rendered HTML content. in render() 406 * Registers a global escaper. This also makes it available as a Function named with "_escape" 409 public void registerGlobalEscaper(String name, TextFilter escaper) { in registerGlobalEscaper() argument 410 globalFunctions.registerFunction(name + "_escape", escaper, true); in registerGlobalEscaper() 411 globalFunctions.registerEscapeMode(name, escaper); in registerGlobalEscaper()
|
| /external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/regex/ |
| D | RuleParser.java | 2 // License & terms of use: http://www.unicode.org/copyright.html 25 import com.google.common.escape.Escaper; 34 private static final Pattern VAR = Pattern.compile("^%([A-Z])=(.*)$"); 36 // Multi-line rules start with " ; " for some optional amount of whitespace. 48 private static final Escaper SPECIAL_CHARS_ESCAPER = 56 .filter(s -> s.startsWith("%")) in parseConfig() 58 .peek(m -> checkArgument(m.matches(), "invalid argument declaration: %s", m)) in parseConfig() 59 .collect(ImmutableMap.toImmutableMap(m -> m.group(1).charAt(0), m -> m.group(2))); in parseConfig() 68 this.staticVarMap = ImmutableMap.copyOf(filterValues(varMap, s -> !s.startsWith("//"))); in RuleParser() 71 filterValues(varMap, s -> s.startsWith("//")), in RuleParser() [all …]
|
| /external/jsilver/src/com/google/clearsilver/jsilver/functions/html/ |
| D | TextHtmlFunction.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.clearsilver.jsilver.functions.html; 30 * It converts plain text into html, including adding 'tt' tags to ascii art and linking email and 33 * Note this implementation differs from ClearSilver, in that it html escapes the contents of links 38 // These regular expressions are adapted from html.c in the ClearSilver 44 "[^]\\[@:;<>\\\"()\\s\\p{Cntrl}]+@[-+a-zA-Z0-9]+\\.[-+a-zA-Z0-9\\.]+[-+a-zA-Z0-9]"; 52 private static final String WITHOUT_SCHEME_REGEXP = "www\\.[-a-z0-9\\.]+[^\\s;\">]*"; 63 // We don't have access to the global html escaper here, so create a new one. 66 // Escapes a small set of non-safe html characters, and does a a very small 96 // Add 'tt' tag to a string that contains 'ascii-art'. in filter() [all …]
|
| /external/skia/modules/canvaskit/ |
| D | package-lock.json | 2 "name": "canvaskit-local", 8 "name": "canvaskit-local", 10 "license": "BSD-3-Clause", 12 "is-docker": "~1.1.0", 13 "jasmine-core": "~3.6.0", 15 "karma-chrome-launcher": "~3.1.0", 16 "karma-coverage": "~2.0.3", 17 "karma-jasmine": "~4.0.1", 21 "node_modules/@babel/code-frame": { 23 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", [all …]
|