Any help would be appreciated:
I have the following X10 code:
public static def nextWhiteSpaceIndex(str:String, from:Int):Int{
var ch: Char;
var i: Int;
for (i = from; i < str.length(); i++){
ch = str.charAt(i);
if ( ch.isWhitespace() )
return i;
}
return -1;
}
get this error with C++ backend, but not Java backend:
x10c++: UserParameters.cc: In static member function ‘static x10_int
UserParameters::nextWhiteSpaceIndex(x10aux::ref<x10::lang::String>,
x10_int)’:
UserParameters.cc:827: error: ‘isWhitespace’ is not a member of
‘x10aux::char_utils’
x10c++: Non-zero return code: 1
2 errors.
for this code in the .cc file:
x10_int UserParameters::nextWhiteSpaceIndex(
x10aux::ref<x10::lang::String> str,
x10_int from) {
//#line 228
x10_char ch;
//#line 229
x10_int i;
//#line 230
{
for (
//#line 230
i = from; i < str->length();
//#line 230
i +=
((x10_int)1)){
{
//#line 231
ch = (str)->charAt(i);
//#line 232
if (x10aux::char_utils::isWhitespace(ch))
{
//#line 233
return i;
}
}
}
}
return ((x10_int)-1);
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users