From 32047cdd87984b54e1ac80b161e288f32f93d51a Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 9 Mar 2019 21:13:01 +0100 Subject: Swift class resolver updates --- cpp/src/slice2swift/SwiftUtil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/slice2swift/SwiftUtil.cpp') diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 1fe9ccf7fe0..5c3bcac9013 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -62,11 +62,13 @@ replace(string s, string patt, string val) return r; } +} + // // Split a scoped name into its components and return the components as a list of (unscoped) identifiers. // -static StringList -splitScopedName(const string& scoped) +StringList +Slice::splitScopedName(const string& scoped) { assert(scoped[0] == ':'); StringList ids; @@ -97,8 +99,6 @@ splitScopedName(const string& scoped) return ids; } -} - // // Check the given identifier against Swift's list of reserved words. If it matches // a reserved word, then an escaped version is returned with a leading underscore. -- cgit v1.2.3