本文整理了Java中org.glassfish.grizzly.http.util.Ascii.toLower()
方法的一些代码示例,展示了Ascii.toLower()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ascii.toLower()
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.util.Ascii
类名称:Ascii
方法名:toLower
[英]Returns the lower case equivalent of the specified ASCII character.
[中]返回指定ASCII字符的小写等效字符。
代码示例来源:origin: org.glassfish.grizzly/grizzly-http
public int hashIgnoreCase() {
int code=0;
for (int i = start; i < end; i++) {
code = code * 31 + Ascii.toLower(buff[i]);
}
return code;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
private static int hashBytesIC(byte[] bytes, int start, int bytesLen ) {
int max=start+bytesLen;
int code=0;
for (int i = start; i < max ; i++) {
code = code * 31 + Ascii.toLower(bytes[i]);
}
return code;
}
代码示例来源:origin: javaee/grizzly
public int hashIgnoreCase() {
int code=0;
for (int i = start; i < end; i++) {
code = code * 31 + Ascii.toLower(buff[i]);
}
return code;
}
代码示例来源:origin: javaee/grizzly
public int hashIgnoreCase() {
int code=0;
for (int i = start; i < end; i++) {
code = code * 31 + Ascii.toLower(buff[i]);
}
return code;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http
private static int hashBytesIC(byte[] bytes, int start, int bytesLen ) {
int max=start+bytesLen;
int code=0;
for (int i = start; i < max ; i++) {
code = code * 31 + Ascii.toLower(bytes[i]);
}
return code;
}
代码示例来源:origin: javaee/grizzly
public int hashIgnoreCase() {
int code=0;
for (int i = start; i < end; i++) {
code = code * 31 + Ascii.toLower(buff[i]);
}
return code;
}
代码示例来源:origin: javaee/grizzly
private static int hashBytesIC(byte[] bytes, int start, int bytesLen ) {
int max=start+bytesLen;
int code=0;
for (int i = start; i < max ; i++) {
code = code * 31 + Ascii.toLower(bytes[i]);
}
return code;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
public int hashIgnoreCase() {
int code=0;
for (int i = start; i < end; i++) {
code = code * 31 + Ascii.toLower(buff[i]);
}
return code;
}
代码示例来源:origin: javaee/grizzly
public int hashIgnoreCase() {
int code=0;
for (int i = start; i < end; i++) {
code = code * 31 + Ascii.toLower(buff[i]);
}
return code;
}
代码示例来源:origin: javaee/grizzly
private static boolean equalsIgnoreCase(String s, byte[] b) {
final int len = b.length;
if (s.length() != len) {
return false;
}
for (int i = 0; i < len; i++) {
if (Ascii.toLower(s.charAt(i)) != Ascii.toLower(b[i])) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
private static boolean equalsIgnoreCase(String s, byte[] b) {
final int len = b.length;
if (s.length() != len) {
return false;
}
for (int i = 0; i < len; i++) {
if (Ascii.toLower(s.charAt(i)) != Ascii.toLower(b[i])) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
private static boolean equalsIgnoreCase(String s, byte[] b) {
final int len = b.length;
if (s.length() != len) {
return false;
}
for (int i = 0; i < len; i++) {
if (Ascii.toLower(s.charAt(i)) != Ascii.toLower(b[i])) {
return false;
}
}
return true;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http
private static boolean equalsIgnoreCase(String s, byte[] b) {
final int len = b.length;
if (s.length() != len) {
return false;
}
for (int i = 0; i < len; i++) {
if (Ascii.toLower(s.charAt(i)) != Ascii.toLower(b[i])) {
return false;
}
}
return true;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
private static boolean equalsIgnoreCase(String s, byte[] b) {
final int len = b.length;
if (s.length() != len) {
return false;
}
for (int i = 0; i < len; i++) {
if (Ascii.toLower(s.charAt(i)) != Ascii.toLower(b[i])) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
private static boolean equalsIgnoreCase(String s, byte[] b) {
final int len = b.length;
if (s.length() != len) {
return false;
}
for (int i = 0; i < len; i++) {
if (Ascii.toLower(s.charAt(i)) != Ascii.toLower(b[i])) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
public boolean equalsIgnoreCase(CharSequence s) {
if (getLength() != s.length()) {
return false;
}
for (int i = start; i < end; i++) {
if (Ascii.toLower(buffer.get(i)) != Ascii.toLower(s.charAt(i - start))) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
public boolean equalsIgnoreCase(CharSequence s) {
if (getLength() != s.length()) {
return false;
}
for (int i = start; i < end; i++) {
if (Ascii.toLower(buffer.get(i)) != Ascii.toLower(s.charAt(i - start))) {
return false;
}
}
return true;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
public boolean equalsIgnoreCase(CharSequence s) {
if (getLength() != s.length()) {
return false;
}
for (int i = start; i < end; i++) {
if (Ascii.toLower(buffer.get(i)) != Ascii.toLower(s.charAt(i - start))) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
public boolean equalsIgnoreCase(CharSequence s) {
if (getLength() != s.length()) {
return false;
}
for (int i = start; i < end; i++) {
if (Ascii.toLower(buffer.get(i)) != Ascii.toLower(s.charAt(i - start))) {
return false;
}
}
return true;
}
代码示例来源:origin: javaee/grizzly
public boolean equalsIgnoreCase(CharSequence s) {
if (getLength() != s.length()) {
return false;
}
for (int i = start; i < end; i++) {
if (Ascii.toLower(buffer.get(i)) != Ascii.toLower(s.charAt(i - start))) {
return false;
}
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!