I am trying to translate C++ code to Java. My function should check if a string consists of digits. Therefore the locale is also regareded. This is my short funciton:

BOOL __IsN(CIPString _s)

locale loc ( "German_Germany" );

for(int i=0; i < _s.GetLength(); i++)
if(!isdigit(_s.GetAt(i), loc))
return FALSE;

return TRUE;

I know there is the Class Locale in Java. But it seams to work different. The other problem is isdigit. There is also a isdigit in Java
but it handles only char. But I have a String. How to convert this?