main/scripting/source/storage/ScriptStorage.cxx
//*************************************************************************
// private method to return the file extension, eg. bsh, js etc
private method to return the file extension, eg. bsh, js etc
private method to return the file extension eg . bsh js etc
OUString 
ScriptStorage::getFileExtension( const OUString & stringUri )
{
    OUString fileExtension;
    sal_Int32 lastDot = stringUri.lastIndexOf( '.' );
    if( lastDot > 0 ) {
        sal_Int32 stringUriLength = stringUri.getLength();
        fileExtension = stringUri.copy( lastDot +1 , stringUriLength - lastDot - 1 );
    } 
    else 
    {
        fileExtension = OUString::createFromAscii("");
    }
    return fileExtension;
}
OUString ScriptStorage :: getFileExtension ( const OUString & stringUri ) { OUString fileExtension ; sal_Int32 lastDot = stringUri . lastIndexOf ( ' ' ) ; if ( lastDot > 0 ) { sal_Int32 stringUriLength = stringUri . getLength ( ) ; fileExtension = stringUri . copy ( lastDot + 1 , stringUriLength - lastDot - 1 ) ; } else { fileExtension = OUString :: createFromAscii ( " " ) ; } return fileExtension ; }
private method to return the file extension, eg.
private method to return the file extension eg .