Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

osdep.cpp File Reference

OS dependant utility functions. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/utils.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "osdep.hpp"
#include "comdefs.hpp"
#include "compat.hpp"

Include dependency graph for osdep.cpp:

Include dependency graph

Go to the source code of this file.

Functions

off_t getFileLength (const wxChar *fileName)
 Gets the length of the specified file.

wxArrayString getResourcesPaths ()
 Gets the absolute paths where the resources of the program can be placed.

wxString UTF8toLocal (const wxString utf8)
 Converts an UTF-8 string to the local encoded string.


Detailed Description

OS dependant utility functions.

Definition in file osdep.cpp.


Function Documentation

off_t getFileLength const wxChar *  fileName  ) 
 

Gets the length of the specified file.

Should not work with large files.

Parameters:
fileName The name of the file of which we want to get the length.
Returns:
The length of the specified file or wxInvalidOffset if an error has occured.

Definition at line 100 of file osdep.cpp.

wxArrayString getResourcesPaths  ) 
 

Gets the absolute paths where the resources of the program can be placed.

Returns:
The absolute paths where the resources of the program can be placed.

Definition at line 148 of file osdep.cpp.

References APP_NAME.

wxString UTF8toLocal const wxString  utf8  ) 
 

Converts an UTF-8 string to the local encoded string.

Parameters:
utf8 String encoded in UTF-8.
Returns:
The string encoded in local encoding.

Definition at line 231 of file osdep.cpp.

Referenced by Languages::readLanguagesSettings().


Generated on Sun May 30 13:38:00 2004 for wxChecksums by doxygen 1.3.7