- Sync scripting branch with what was in trunk on Sunday. I believe that would be revision 2739.
SVN r2790 (scripting)
This commit is contained in:
commit
99670b708c
317 changed files with 17299 additions and 7273 deletions
|
|
@ -333,6 +333,24 @@ void FScanner::RestorePos (const FScanner::SavedPos &pos)
|
|||
Crossed = false;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FScanner :: isText
|
||||
//
|
||||
// Checks if this is a text file.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
bool FScanner::isText()
|
||||
{
|
||||
for(unsigned int i=0;i<ScriptBuffer.Len();i++)
|
||||
{
|
||||
int c = ScriptBuffer[i];
|
||||
if (c < ' ' && c != '\n' && c != '\r' && c != '\t') return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FScanner :: SetCMode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue