private static String silabaRest(String str) { String s2; s2 = Divisor.silaba(str); return(str.Substring(s2.Length)); }
public String silabear() { String temp; String s = ""; int k; int i; k = this.cadena.Length; temp = this.cadena; for (i = 0; (i < k); i++) { temp = Divisor.silaba(this.cadena); if ((i == 0)) { s = (s + temp); } else if (Divisor.strConsonantes(temp)) { s = (s + temp); } else if (Divisor.strVVstr(s, temp)) { s = (s + temp); } else if (Divisor.strConsonantes(s)) { s = (s + temp); } else { s = (s + ("-" + temp)); } i = (i + (temp.Length - 1)); this.cadena = Divisor.silabaRest(this.cadena); } return(s); }