org.apache.commons.lang.StringEscapeUtils.hex()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.apache.commons.lang.StringEscapeUtils.hex()方法的一些代码示例,展示了StringEscapeUtils.hex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StringEscapeUtils.hex()方法的具体详情如下:
包路径:org.apache.commons.lang.StringEscapeUtils
类名称:StringEscapeUtils
方法名:hex

StringEscapeUtils.hex介绍

[英]Returns an upper case hexadecimal String for the given character.
[中]返回给定字符的大写十六进制String

代码示例

代码示例来源:origin: commons-lang/commons-lang

out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
  out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
  out.write("\\u00" + hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.write("\\u00" + hex(ch));
      } else {
        out.write("\\u000" + hex(ch));

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.lang

out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
  out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
  out.write("\\u00" + hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.write("\\u00" + hex(ch));
      } else {
        out.write("\\u000" + hex(ch));

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
  out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
  out.write("\\u00" + hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.write("\\u00" + hex(ch));
      } else {
        out.write("\\u000" + hex(ch));

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
  out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
  out.write("\\u00" + hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.write("\\u00" + hex(ch));
      } else {
        out.write("\\u000" + hex(ch));

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
  out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
  out.write("\\u00" + hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.write("\\u00" + hex(ch));
      } else {
        out.write("\\u000" + hex(ch));

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

out.write("\\u" + hex(ch));
} else if (ch > 0xff) {
  out.write("\\u0" + hex(ch));
} else if (ch > 0x7f) {
  out.write("\\u00" + hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.write("\\u00" + hex(ch));
      } else {
        out.write("\\u000" + hex(ch));

相关文章