]>
git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/src/wx_extra_imps.cpp
ab8b9fbb2d4ac3bd381c1ab9b2106f74c51c3bdf
7 // For compilers that support precompilation, includes "wx.h".
18 void WXDLLEXPORT
wxSplitPath(const char *pszFileName
,
23 wxCHECK_RET( pszFileName
, _("NULL file name in wxSplitPath") );
25 const char *pDot
= strrchr(pszFileName
, wxFILE_SEP_EXT
);
26 const char *pSepUnix
= strrchr(pszFileName
, wxFILE_SEP_PATH_UNIX
);
27 const char *pSepDos
= strrchr(pszFileName
, wxFILE_SEP_PATH_DOS
);
29 // take the last of the two
30 size_t nPosUnix
= pSepUnix
? pSepUnix
- pszFileName
: 0;
31 size_t nPosDos
= pSepDos
? pSepDos
- pszFileName
: 0;
32 if ( nPosDos
> nPosUnix
)
34 // size_t nLen = Strlen(pszFileName);
37 *pstrPath
= wxString(pszFileName
, nPosUnix
);
39 size_t nPosDot
= pDot
- pszFileName
;
41 *pstrName
= wxString(pszFileName
+ nPosUnix
+ 1, nPosDot
- nPosUnix
);
43 *pstrExt
= wxString(pszFileName
+ nPosDot
+ 1);
47 *pstrName
= wxString(pszFileName
+ nPosUnix
+ 1);
53 wxLocale
*wxGetLocale()
58 const char *wxLocale::GetString(const char *szOrigString
,
65 const char *wxGetTranslation(const char *str
)