BF [2932106] - AmtInWords - Spanish: hundreds with blanks

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2932106&group_id=176962
This commit is contained in:
trifonnt 2010-01-14 19:23:12 +00:00
parent cab41fd88c
commit b452bfe473
1 changed files with 20 additions and 0 deletions

View File

@ -156,14 +156,34 @@ public class AmtInWords_ES implements AmtInWords
{ {
s = s.replaceFirst ("UN CIENTO", "CIEN"); s = s.replaceFirst ("UN CIENTO", "CIEN");
} }
if (s.startsWith ("DOS CIENTOS", 1))
{
s = s.replaceFirst ("DOS CIENTOS", "DOSCIENTOS");
}
if (s.startsWith ("TRES CIENTOS", 1))
{
s = s.replaceFirst ("TRES CIENTOS", "TRESCIENTOS");
}
if (s.startsWith ("CUATRO CIENTOS", 1))
{
s = s.replaceFirst ("CUATRO CIENTOS", "CUATROCIENTOS");
}
if (s.startsWith ("CINCO CIENTOS", 1)) if (s.startsWith ("CINCO CIENTOS", 1))
{ {
s = s.replaceFirst ("CINCO CIENTOS", "QUINIENTOS"); s = s.replaceFirst ("CINCO CIENTOS", "QUINIENTOS");
} }
if (s.startsWith ("SEIS CIENTOS", 1))
{
s = s.replaceFirst ("SEIS CIENTOS", "SEISCIENTOS");
}
if (s.startsWith ("SIETE CIENTOS", 1)) if (s.startsWith ("SIETE CIENTOS", 1))
{ {
s = s.replaceFirst ("SIETE CIENTOS", "SETECIENTOS"); s = s.replaceFirst ("SIETE CIENTOS", "SETECIENTOS");
} }
if (s.startsWith ("OCHO CIENTOS", 1))
{
s = s.replaceFirst ("OCHO CIENTOS", "OCHOCIENTOS");
}
if (s.startsWith ("NUEVE CIENTOS", 1)) if (s.startsWith ("NUEVE CIENTOS", 1))
{ {
s = s.replaceFirst ("NUEVE CIENTOS", "NOVECIENTOS"); s = s.replaceFirst ("NUEVE CIENTOS", "NOVECIENTOS");