summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PHPUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/PHPUtil.cpp')
-rw-r--r--cpp/src/Slice/PHPUtil.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/cpp/src/Slice/PHPUtil.cpp b/cpp/src/Slice/PHPUtil.cpp
index 92234fb75c0..4ab485d11f6 100644
--- a/cpp/src/Slice/PHPUtil.cpp
+++ b/cpp/src/Slice/PHPUtil.cpp
@@ -9,6 +9,7 @@
#include <Slice/PHPUtil.h>
#include <functional>
+#include <vector>
using namespace std;
using namespace Slice;
@@ -29,8 +30,8 @@ lookupKwd(const string& name)
//
// Keyword list. *Must* be kept in alphabetical order.
//
- static const string keywordList[] =
- {
+ static const string keywordList[] =
+ {
"abstract", "and", "array", "as", "break", "case", "catch", "class", "clone", "const", "continue", "declare",
"default", "die", "do", "echo", "else", "elseif", "empty", "enddeclare", "endfor", "endforeach", "endif",
"endswitch", "endwhile", "eval", "exit", "extends", "final", "for", "foreach", "function", "global", "if",
@@ -135,12 +136,6 @@ Slice::PHP::fixIdent(const string& ident)
}
string
-Slice::PHP::getAbsolute(const ContainedPtr& cont, bool ns, const string& prefix, const string& suffix)
-{
- return scopedToName(cont->scope() + prefix + cont->name() + suffix, ns);
-}
-
-string
Slice::PHP::escapeName(const string& name)
{
string result = name;