|
static void | CleanString (const std::string &strFileName, std::string &strTitle, std::string &strTitleAndYear, std::string &strYear, bool bRemoveExtension=false, bool bCleanChars=true) |
|
static bool | GetFilenameIdentifier (const std::string &fileName, std::string &identifierType, std::string &identifier) |
|
static bool | GetFilenameIdentifier (const std::string &fileName, std::string &identifierType, std::string &identifier, std::string &match) |
|
static bool | HasFilenameIdentifier (const std::string &fileName) |
|
static std::string | GetTitleFromPath (const CURL &url, bool bIsFolder=false) |
|
static std::string | GetTitleFromPath (const std::string &strFileNameAndPath, bool bIsFolder=false) |
|
static std::string | GetDiscNumberFromPath (const std::string &path) |
| Return the disc number in case the last segment of given path ends with 'Disc n'. Will look for 'Disc', 'Disk' and the locale specific spelling.
|
|
static std::string | RemoveTrailingDiscNumberSegmentFromPath (std::string path) |
| Remove last segment of the given path if it matches 'Disc n'. Will look for 'Disc', 'Disk' and the locale specific spelling.
|
|
static void | GetQualifiedFilename (const std::string &strBasePath, std::string &strFilename) |
|
static void | RunShortcut (const char *szPath) |
|
static std::string | GetHomePath (const std::string &strTarget="KODI_HOME") |
|
static bool | ExcludeFileOrFolder (const std::string &strFileOrFolder, const std::vector< std::string > ®exps) |
|
static void | GetFileAndProtocol (const std::string &strURL, std::string &strDir) |
|
static int | GetDVDIfoTitle (const std::string &strPathFile) |
|
static bool | IsPicture (const std::string &strFile) |
|
static std::string | GetSplashPath () |
| Get resolved filesystem location of splash image.
|
|
static std::string | GetFileDigest (const std::string &strPath, KODI::UTILITY::CDigest::Type type) |
| retrieve MD5sum of a file
|
|
static bool | GetDirectoryName (const std::string &strFileName, std::string &strDescription) |
|
static void | GetDVDDriveIcon (const std::string &strPath, std::string &strIcon) |
|
static void | RemoveTempFiles () |
|
static void | ClearSubtitles () |
|
static void | ScanForExternalSubtitles (const std::string &strMovie, std::vector< std::string > &vecSubtitles) |
|
static ExternalStreamInfo | GetExternalStreamDetailsFromFilename (const std::string &videoPath, const std::string &associatedFile) |
| Retrieves stream info of external associated files, e.g., subtitles, for a given video.
|
|
static bool | FindVobSubPair (const std::vector< std::string > &vecSubtitles, const std::string &strIdxPath, std::string &strSubPath) |
| in a vector of subtitles finds the corresponding .sub file for a given .idx file
|
|
static bool | IsVobSub (const std::vector< std::string > &vecSubtitles, const std::string &strSubPath) |
| checks if in the vector of subtitles the given .sub file has a corresponding idx and hence is a vobsub file
|
|
static std::string | GetVobSubSubFromIdx (const std::string &vobSubIdx) |
| find a plain or archived vobsub .sub file corresponding to an .idx file
|
|
static std::string | GetVobSubIdxFromSub (const std::string &vobSub) |
| find a .idx file from a path of a plain or archived vobsub .sub file
|
|
static void | ScanForExternalAudio (const std::string &videoPath, std::vector< std::string > &vecAudio) |
| Retrieves paths of external audio files for a given video.
|
|
static int64_t | ToInt64 (uint32_t high, uint32_t low) |
|
static std::string | GetNextFilename (const std::string &fn_template, int max) |
| Finds next unused filename that matches padded int format identifier provided.
|
|
static std::string | GetNextPathname (const std::string &path_template, int max) |
|
static void | StatToStatI64 (struct _stati64 *result, struct stat *stat) |
|
static void | StatToStat64 (struct __stat64 *result, const struct stat *stat) |
|
static void | Stat64ToStatI64 (struct _stati64 *result, struct __stat64 *stat) |
|
static void | StatI64ToStat64 (struct __stat64 *result, struct _stati64 *stat) |
|
static void | Stat64ToStat (struct stat *result, struct __stat64 *stat) |
|
static bool | CreateDirectoryEx (const std::string &strPath) |
|
static std::string | MakeLegalFileName (std::string strFile, int LegalType=LEGAL_NONE) |
|
static std::string | MakeLegalPath (std::string strPath, int LegalType=LEGAL_NONE) |
|
static std::string | ValidatePath (std::string path, bool bFixDoubleSlashes=false) |
| return a validated path, with correct directory separators.
|
|
static bool | IsSupportedFontExtension (const std::string &fileName) |
| Check if a filename contains a supported font extension.
|
|
static void | SplitParams (const std::string ¶mString, std::vector< std::string > ¶meters) |
| Split a comma separated parameter list into separate parameters. Takes care of the case where we may have a quoted string containing commas, or we may have a function (i.e. parentheses) with multiple parameters as a single parameter.
|
|
static int | GetMatchingSource (const std::string &strPath, std::vector< CMediaSource > &sources, bool &bIsSourceName) |
|
static std::string | TranslateSpecialSource (const std::string &strSpecial) |
|
static void | DeleteDirectoryCache (const std::string &prefix="") |
|
static void | DeleteMusicDatabaseDirectoryCache () |
|
static void | DeleteVideoDatabaseDirectoryCache () |
|
static std::string | MusicPlaylistsLocation () |
|
static std::string | VideoPlaylistsLocation () |
|
static void | GetSkinThemes (std::vector< std::string > &vecTheme) |
|
static void | GetRecursiveListing (const std::string &strPath, CFileItemList &items, const std::string &strMask, unsigned int flags=0) |
|
static void | GetRecursiveDirsListing (const std::string &strPath, CFileItemList &items, unsigned int flags=0) |
|
static void | ForceForwardSlashes (std::string &strPath) |
|
static double | AlbumRelevance (const std::string &strAlbumTemp1, const std::string &strAlbum1, const std::string &strArtistTemp1, const std::string &strArtist1) |
|
static bool | MakeShortenPath (std::string StrInput, std::string &StrOutput, size_t iTextMaxLength) |
|
static bool | SupportsWriteFileOperations (const std::string &strPath) |
| Checks whether the supplied path supports Write file operations (e.g. Rename, Delete, ...)
|
|
static bool | SupportsReadFileOperations (const std::string &strPath) |
| Checks whether the supplied path supports Read file operations (e.g. Copy, ...)
|
|
static std::string | GetDefaultFolderThumb (const std::string &folderThumb) |
|
static void | InitRandomSeed () |
|
static int | LookupRomanDigit (char roman_digit) |
|
static int | TranslateRomanNumeral (const char *roman_numeral) |
|
static std::string | ResolveExecutablePath () |
|
static std::string | GetFrameworksPath (bool forPython=false) |
|
static bool | CanBindPrivileged () |
|
static bool | ValidatePort (int port) |
|
static int | GetRandomNumber () |
| Thread-safe random number generation.
|
|
static int64_t | ConvertSecsToMilliSecs (double secs) |
|
static double | ConvertMilliSecsToSecs (int64_t offset) |
|
static int64_t | ConvertMilliSecsToSecsInt (int64_t offset) |
|
static int64_t | ConvertMilliSecsToSecsIntRounded (int64_t offset) |
|
static void | CopyUserDataIfNeeded (const std::string &strPath, const std::string &file, const std::string &destname="") |
| Copy files from the application bundle over to the user data directory in Application Support/Kodi.
|
|