From bb49f0e021fb1fbefad44d944233fb1cf72c495c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 09:12:54 +0000 Subject: Introducing StringUtils - the place to be if you are a generic string routine :) No more sprintf()! git-svn-id: http://mc-server.googlecode.com/svn/trunk@209 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebPlugin_Lua.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/cWebPlugin_Lua.cpp') diff --git a/source/cWebPlugin_Lua.cpp b/source/cWebPlugin_Lua.cpp index bb3f79226..ab397173e 100644 --- a/source/cWebPlugin_Lua.cpp +++ b/source/cWebPlugin_Lua.cpp @@ -8,6 +8,15 @@ #include "cWebAdmin.h" + + + +extern bool report_errors(lua_State* lua, int status); + + + + + static std::string SafeString( const std::string& a_String ) { std::string RetVal; @@ -24,8 +33,8 @@ static std::string SafeString( const std::string& a_String ) } -extern bool report_errors(lua_State* lua, int status); -extern std::vector StringSplit(std::string str, std::string delim); + + struct cWebPlugin_Lua::sWebPluginTab { @@ -130,7 +139,7 @@ void cWebPlugin_Lua::Initialize() std::pair< std::string, std::string > cWebPlugin_Lua::GetTabNameForRequest( HTTPRequest* a_Request ) { std::pair< std::string, std::string > Names; - std::vector Split = StringSplit( a_Request->Path, "/" ); + AStringVector Split = StringSplit(a_Request->Path, "/"); if( Split.size() > 1 ) { -- cgit v1.2.3