isFbxFormatASCII function
dynamic
isFbxFormatASCII(
- String text
)
Implementation
isFbxFormatASCII(String text) {
var CORRECT = [
'K',
'a',
'y',
'd',
'a',
'r',
'a',
'\\',
'F',
'B',
'X',
'\\',
'B',
'i',
'n',
'a',
'r',
'y',
'\\',
'\\'
];
var cursor = 0;
read(offset) {
var result = text[offset - 1];
text =
text.substring((cursor + offset).toInt()); //.slice( cursor + offset );
cursor++;
return result;
}
for (var i = 0; i < CORRECT.length; ++i) {
var num = read(1);
if (num == CORRECT[i]) {
return false;
}
}
return true;
}