Bläddra i källkod

Remove Urho3D::String binding in Lua.

Aster Jian 12 år sedan
förälder
incheckning
de816ebeaa

+ 0 - 90
Source/Extras/LuaScript/pkgs/Container/Str.pkg

@@ -1,90 +0,0 @@
-$#include "Str.h"
-
-class String
-{
-    String();
-    String(const String& str);
-    String(const char* str);
-    String(const char* str, unsigned length);
-    ~String();
-    
-    String operator + (const String& rhs) const;
-    String operator + (const char* rhs) const;
-    
-    bool operator == (const String& rhs) const;
-    bool operator == (const char* rhs) const;
-    tolua_outside bool StringEquals @ Equals(const String& rhs) const;
-    tolua_outside bool StringEquals @ Equals(const char*& rhs) const;
-
-    void Replace(const String& replaceThis, const String& replaceWith, bool caseSensitive = true);
-    void Replace(const char* replaceThis, const char* replaceWith, bool caseSensitive = true);
-    
-    void Replace(unsigned pos, unsigned length, const String& replaceWith);
-    void Replace(unsigned pos, unsigned length, const char* replaceWith);
-    
-    String Replaced(const String& replaceThis, const String& replaceWith, bool caseSensitive = true) const;
-    String Replaced(const char* replaceThis, const char* replaceWith, bool caseSensitive = true) const;
-    
-    String& Append(const String& str);
-    String& Append(const char* str);
-    String& Append(const char* str, unsigned length);
-    
-    void Insert(unsigned pos, const String& str);
-    void Insert(unsigned pos, char c);
-    void Erase(unsigned pos, unsigned length = 1);
-    void Resize(unsigned newLength);
-    void Reserve(unsigned newCapacity);
-    void Compact();
-    void Clear();
-    
-    String Substring(unsigned pos) const;
-    String Substring(unsigned pos, unsigned length) const;
-    String Trimmed() const;
-    
-    String ToUpper() const;
-    String ToLower() const;
-    
-    unsigned Find(const String& str, unsigned startPos = 0, bool caseSensitive = true) const;
-    unsigned Find(const char* str, unsigned startPos = 0, bool caseSensitive = true) const;
-    
-    unsigned FindLast(const String& str, unsigned startPos = String::NPOS, bool caseSensitive = true) const;
-    unsigned FindLast(const char* str, unsigned startPos = String::NPOS, bool caseSensitive = true) const;
-    
-    bool StartsWith(const String& str, bool caseSensitive = true) const;
-    bool StartsWith(const char* str, bool caseSensitive = true) const;
-    bool EndsWith(const String& str, bool caseSensitive = true) const;
-    bool EndsWith(const char* str, bool caseSensitive = true) const;
-    
-    const char* CString() const;
-    unsigned Length() const;
-    unsigned Capacity() const;
-    bool Empty() const;
-    int Compare(const String& str, bool caseSensitive = true) const;
-    int Compare(const char* str, bool caseSensitive = true) const;
-    bool Contains(const String& str) const;
-    
-    unsigned ToHash() const;
-    
-    static int Compare(const char* str1, const char* str2, bool caseSensitive);
-    
-    static const unsigned NPOS;
-    static const String EMPTY;
-    
-    tolua_readonly tolua_property__no_prefix unsigned length;
-    tolua_readonly tolua_property__no_prefix unsigned capacity;
-    tolua_readonly tolua_property__no_prefix bool empty;
-};
-
-${
-
-static bool StringEquals(const String* lhs, const char* rhs)
-{
-    return (*lhs) == rhs;
-}
-
-static bool StringEquals(const String* lhs, const String& rhs)
-{
-    return (*lhs) == rhs;
-}
-
-$}

+ 0 - 1
Source/Extras/LuaScript/pkgs/ContainerLuaAPI.pkg

@@ -1,6 +1,5 @@
 $#define TOLUA_RELEASE
 
-$pfile "Container/Str.pkg"
 $pfile "Container/Vector.pkg"
 
 $using namespace Urho3D;