source: cpp/common/util-string.h @ 840

Last change on this file since 840 was 840, checked in by Maciej Komosinski, 5 years ago

Split stl-util into util-stl, util-file and util-string

  • Property svn:eol-style set to native
File size: 846 bytes
RevLine 
[286]1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
[140]4
[840]5#ifndef _UTIL_STRINGS_H_
6#define _UTIL_STRINGS_H_
[140]7
8#include "nonstd_stl.h"
[180]9#include <stdarg.h>
[140]10
[257]11char* strmove(char *a, char *b); //strcpy that works well for overlapping strings ("Source and destination overlap")
12
[140]13string ssprintf(const char* format, ...);
[180]14string ssprintf_va(const char* format, va_list ap);
[140]15
16string stripExt(const string& filename); // strip extension from filename
[180]17string getFileExt(const string& filename); // get extension (starting with ".") from filename
[246]18string getFileDir(const string& filename); // get path component excluding filename ("" if no dir in file)
[460]19string stripFileDir(const string& filename); // strip path component from filename
[140]20
21#endif
Note: See TracBrowser for help on using the repository browser.