本文整理了Java中org.eclipse.persistence.internal.helper.Helper.isVowel()
方法的一些代码示例,展示了Helper.isVowel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.isVowel()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:isVowel
[英]Returns true if the character given is a vowel. I.e. one of a,e,i,o,u,A,E,I,O,U.
[中]如果给定的字符是元音,则返回true。例如a,e,I,o,u,a,e,I,o,u中的一个。
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* Returns a String which has had enough of the specified character removed to be equal to
* the maximumStringLength.
*/
public static String removeVowels(String s1) {
// Remove the vowels
StringBuilder buf = new StringBuilder();
int s1Size = s1.length();
int s1Index = 0;
while (s1Index < s1Size) {
char currentChar = s1.charAt(s1Index);
if (!isVowel(currentChar)) {
buf.append(currentChar);
}
s1Index++;
}
//
return buf.toString();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* Returns a String which has had enough of the specified character removed to be equal to
* the maximumStringLength.
*/
public static String removeVowels(String s1) {
// Remove the vowels
StringBuilder buf = new StringBuilder();
int s1Size = s1.length();
int s1Index = 0;
while (s1Index < s1Size) {
char currentChar = s1.charAt(s1Index);
if (!isVowel(currentChar)) {
buf.append(currentChar);
}
s1Index++;
}
//
return buf.toString();
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Returns a String which has had enough of the specified character removed to be equal to
* the maximumStringLength.
*/
public static String removeVowels(String s1) {
// Remove the vowels
StringBuffer buf = new StringBuffer();
int s1Size = s1.length();
int s1Index = 0;
while (s1Index < s1Size) {
char currentChar = s1.charAt(s1Index);
if (!isVowel(currentChar)) {
buf.append(currentChar);
}
s1Index++;
}
//
return buf.toString();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
if (isVowel(s1.charAt(s1Index))) {
numberOfCharsToBeRemoved--;
} else {
if (isVowel(s2.charAt(s2Index))) {
numberOfCharsToBeRemoved--;
} else {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
if (isVowel(s1.charAt(s1Index))) {
numberOfCharsToBeRemoved--;
} else {
if (isVowel(s2.charAt(s2Index))) {
numberOfCharsToBeRemoved--;
} else {
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
if (isVowel(s1.charAt(s1Index))) {
numberOfCharsToBeRemoved--;
} else {
if (isVowel(s2.charAt(s2Index))) {
numberOfCharsToBeRemoved--;
} else {
内容来源于网络,如有侵权,请联系作者删除!