org.eclipse.persistence.internal.helper.Helper.isVowel()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(143)

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

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

  1. /**
  2. * Returns a String which has had enough of the specified character removed to be equal to
  3. * the maximumStringLength.
  4. */
  5. public static String removeVowels(String s1) {
  6. // Remove the vowels
  7. StringBuilder buf = new StringBuilder();
  8. int s1Size = s1.length();
  9. int s1Index = 0;
  10. while (s1Index < s1Size) {
  11. char currentChar = s1.charAt(s1Index);
  12. if (!isVowel(currentChar)) {
  13. buf.append(currentChar);
  14. }
  15. s1Index++;
  16. }
  17. //
  18. return buf.toString();
  19. }

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. /**
  2. * Returns a String which has had enough of the specified character removed to be equal to
  3. * the maximumStringLength.
  4. */
  5. public static String removeVowels(String s1) {
  6. // Remove the vowels
  7. StringBuilder buf = new StringBuilder();
  8. int s1Size = s1.length();
  9. int s1Index = 0;
  10. while (s1Index < s1Size) {
  11. char currentChar = s1.charAt(s1Index);
  12. if (!isVowel(currentChar)) {
  13. buf.append(currentChar);
  14. }
  15. s1Index++;
  16. }
  17. //
  18. return buf.toString();
  19. }

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  1. /**
  2. * Returns a String which has had enough of the specified character removed to be equal to
  3. * the maximumStringLength.
  4. */
  5. public static String removeVowels(String s1) {
  6. // Remove the vowels
  7. StringBuffer buf = new StringBuffer();
  8. int s1Size = s1.length();
  9. int s1Index = 0;
  10. while (s1Index < s1Size) {
  11. char currentChar = s1.charAt(s1Index);
  12. if (!isVowel(currentChar)) {
  13. buf.append(currentChar);
  14. }
  15. s1Index++;
  16. }
  17. //
  18. return buf.toString();
  19. }

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. if (isVowel(s1.charAt(s1Index))) {
  2. numberOfCharsToBeRemoved--;
  3. } else {
  4. if (isVowel(s2.charAt(s2Index))) {
  5. numberOfCharsToBeRemoved--;
  6. } else {

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. if (isVowel(s1.charAt(s1Index))) {
  2. numberOfCharsToBeRemoved--;
  3. } else {
  4. if (isVowel(s2.charAt(s2Index))) {
  5. numberOfCharsToBeRemoved--;
  6. } else {

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  1. if (isVowel(s1.charAt(s1Index))) {
  2. numberOfCharsToBeRemoved--;
  3. } else {
  4. if (isVowel(s2.charAt(s2Index))) {
  5. numberOfCharsToBeRemoved--;
  6. } else {

相关文章

Helper类方法