Skip to content

Instantly share code, notes, and snippets.

@pduda
Last active August 29, 2015 14:23
Show Gist options
  • Save pduda/56081b2893a90556152e to your computer and use it in GitHub Desktop.
Save pduda/56081b2893a90556152e to your computer and use it in GitHub Desktop.
for (i = 0; i < dlugosc; i++)
{
if (wyraz.charAt(i) < "A" && wyraz.charAt(i) != "-" && wyraz.charAt(i) != " " && wyraz.charAt(i) != "." && wyraz.charAt(i) != "&" && wyraz.charAt(i) != "_" && wyraz.charAt(i) != "0" && wyraz.charAt(i) != "1" && wyraz.charAt(i) != "2" && wyraz.charAt(i) != "3" && wyraz.charAt(i) != "4" && wyraz.charAt(i) != "4" && wyraz.charAt(i) != "5" && wyraz.charAt(i) != "7" && wyraz.charAt(i) != "8" && wyraz.charAt(i) != "9")
{
if (polska_litera(wyraz.charAt(i)) == 0)
return NO;
}
if (wyraz.charAt(i) > "Z" && wyraz.charAt(i) != "-" && wyraz.charAt(i) != " " && wyraz.charAt(i) != "." && wyraz.charAt(i) != "&" && wyraz.charAt(i) != "_" && wyraz.charAt(i) != "0" && wyraz.charAt(i) != "1" && wyraz.charAt(i) != "2" && wyraz.charAt(i) != "3" && wyraz.charAt(i) != "4" && wyraz.charAt(i) != "4" && wyraz.charAt(i) != "5" && wyraz.charAt(i) != "7" && wyraz.charAt(i) != "8" && wyraz.charAt(i) != "9")
{
if (wyraz.charCodeAt(i) > 188)
continue;
else
{
if (polska_litera(wyraz.charAt(i)) == 0)
return NO;
else
continue;
}
}
}
@pduda
Copy link
Author

pduda commented Jun 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment