Tabnine Logo
StringUtil2.unescape
Code IndexAdd Tabnine to your IDE (free)

How to use
unescape
method
in
ucar.unidata.util.StringUtil2

Best Java code snippets using ucar.unidata.util.StringUtil2.unescape (Showing top 8 results out of 315)

origin: edu.ucar/netcdf

public String getPath() {
 return (path == null) ? null : StringUtil2.unescape(path);
}
origin: edu.ucar/cdm

public static void main2(String args[]) {
 if (args.length < 2) {
  showUsage();
  return;
 }
 if (args[0].equalsIgnoreCase("escape")) {
  String ok = (args.length > 2)
      ? args[2]
      : "";
  System.out.println(" escape(" + args[1] + "," + ok + ")= "
      + StringUtil2.escape(args[1], ok));
 } else if (args[0].equalsIgnoreCase("unescape")) {
  System.out.println(" unescape(" + args[1] + ")= "
      + StringUtil2.unescape(args[1]));
 } else {
  showUsage();
 }
}
origin: edu.ucar/netcdf

public static void main3(String args[]) {
 if (args.length < 2) {
  showUsage();
  return;
 }
 if (args[0].equalsIgnoreCase("escape")) {
  String ok = (args.length > 2)
      ? args[2]
      : "";
  System.out.println(" escape(" + args[1] + "," + ok + ")= "
      + StringUtil2.escape(args[1], ok));
 } else if (args[0].equalsIgnoreCase("unescape")) {
  System.out.println(" unescape(" + args[1] + ")= "
      + StringUtil2.unescape(args[1]));
 } else {
  showUsage();
 }
}
origin: bcdev/beam

uriString = StringUtil2.unescape(uriString.substring(5));  // 11/10/2010 from erussell@ngs.org
origin: edu.ucar/cdm

uriString = StringUtil2.unescape(uriString.substring(5));  // 11/10/2010 from erussell@ngs.org
origin: edu.ucar/netcdf

uriString = StringUtil2.unescape(uriString.substring(5));  // 11/10/2010 from erussell@ngs.org
origin: Unidata/thredds

uriString = StringUtil2.unescape(uriString.substring(5));  // 11/10/2010 from erussell@ngs.org
origin: Unidata/thredds

String name = dad.getEncodedName();
if (name != null)
 name = StringUtil2.unescape(name);
ucar.unidata.utilStringUtil2unescape

Javadoc

This finds any '%xx' and converts to the equivalent char. Inverse of escape().

Popular methods of StringUtil2

  • replace
    Replace any of the characters from out with corresponding character from in
  • remove
    Remove any of the characters in out from sb
  • substitute
    Find all occurences of the "match" in original, and substitute the "subst" string, directly into the
  • cleanup
    Delete any non-printable characters
  • splitString
    Split a string on one or more whitespace. Cover for String.split, because who can remember regexp?
  • collapseWhitespace
    Collapse continuous whitespace into one single " ".
  • allow
    Replace any char not alphanumeric or in allowChars by replaceChar.
  • breakTextAtWords
    Break the given text into lines, respecting word boundaries (blank space).
  • escape
    Escape any char not alphanumeric or in okChars. Escape by replacing char with %xx (hex).
  • getTokens
  • makeValidCdmObjectName
  • padLeft
    Pad the given string with padString on the left up to the given length.
  • makeValidCdmObjectName,
  • padLeft,
  • padRight,
  • quoteHtmlContent,
  • unreplace,
  • filter7bits,
  • match,
  • quoteXmlAttribute,
  • removeFromEnd

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Menu (java.awt)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now