aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/strutil.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/strutil.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Winamp/strutil.h')
-rw-r--r--Src/Winamp/strutil.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/Src/Winamp/strutil.h b/Src/Winamp/strutil.h
new file mode 100644
index 00000000..a1dbdfac
--- /dev/null
+++ b/Src/Winamp/strutil.h
@@ -0,0 +1,51 @@
+/** (c) Nullsoft, Inc. C O N F I D E N T I A L
+ ** Filename:
+ ** Project:
+ ** Description:
+ ** Author: Ben Allison benski@nullsoft.com
+ ** Created:
+ **/
+
+#ifndef NULLSOFT_STRUTILH
+#define NULLSOFT_STRUTILH
+
+#ifndef FILENAME_SIZE
+#define FILENAME_SIZE (MAX_PATH * 4)
+#endif
+
+#ifndef FILETITLE_SIZE
+#define FILETITLE_SIZE 400
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+char *SkipX(char *str, int count);
+wchar_t *SkipXW(wchar_t *str, int count);
+void CopyChar(char *dest, const char *src);
+ptrdiff_t CopyCharW(wchar_t *dest, const wchar_t *src); // returns number of character copied
+void MakeRelativePathName(const wchar_t *filename, wchar_t *outFile, const wchar_t *path);
+int FileCompareLogicalN(const wchar_t *str1, ptrdiff_t str1size, const wchar_t *str2, ptrdiff_t str2size);
+int FileCompareLogical(const wchar_t *str1, const wchar_t *str2);
+int CompareStringLogical(const wchar_t * str1, const wchar_t * str2);
+char *GetLastCharacter(char *string);
+wchar_t *GetLastCharacterW(wchar_t *string);
+const char *GetLastCharacterc(const char *string);
+const wchar_t *GetLastCharactercW(const wchar_t *string);
+
+wchar_t *scanstr_backW(wchar_t *str, wchar_t *toscan, wchar_t *defval);
+const wchar_t *scanstr_backcW(const wchar_t *str, const wchar_t *toscan, const wchar_t *defval);
+char *scanstr_back(char *str, char *toscan, char *defval);
+char *scanstr_backc(const char *str, char *toscan, char *defval);
+
+char *extension(const char *fn);
+wchar_t *extensionW(const wchar_t *fn);
+const char *extensionc(const char *fn);
+void extension_ex(const char *fn, char *buf, int buflen);
+void extension_exW(const wchar_t *fn, wchar_t *buf, int buflen);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif \ No newline at end of file