Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 11 of 11) sorted by relevance

/thrift-3.4.0/compiler/cpp/src/thrift/generate/
Dt_xsd_generator.cc91 std::string ns(std::string in, std::string ns) { return ns + ":" + in; } in ns() function in t_xsd_generator
93 std::string xsd(std::string in) { return ns(in, "xsd"); } in xsd()
265 string ns = program_->get_namespace("xsd"); in generate_service() local
269 ns = uri->second.back(); in generate_service()
271 if (ns.size() > 0) { in generate_service()
272 ns = " targetNamespace=\"" + ns + "\" xmlns=\"" + ns + "\" " in generate_service()
278 << "<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" << ns << ">" << endl in generate_service()
Dt_perl_generator.cc162 std::string ns = p->get_namespace("perl"); in perl_namespace_dirs() local
165 if (ns.size() > 0) { in perl_namespace_dirs()
166 while ((loc = ns.find(".")) != std::string::npos) { in perl_namespace_dirs()
167 dirs.push_back(ns.substr(0, loc)); in perl_namespace_dirs()
168 ns = ns.substr(loc + 1); in perl_namespace_dirs()
172 if (ns.size() > 0) { in perl_namespace_dirs()
173 dirs.push_back(ns); in perl_namespace_dirs()
178 std::string ns = p->get_namespace("perl"); in perl_namespace() local
182 if (ns.size() > 0) { in perl_namespace()
183 while ((loc = ns.find(".")) != std::string::npos) { in perl_namespace()
[all …]
Dt_cpp_generator.cc235 std::string namespace_prefix(std::string ns);
236 std::string namespace_open(std::string ns);
237 std::string namespace_close(std::string ns);
2231 string ns = namespace_prefix(tservice->get_program()->get_namespace("cpp")); in generate_service_async_skeleton() local
2254 if ((!ns.empty()) && (ns.compare(" ::") != 0)) { in generate_service_async_skeleton()
2255 f_skeleton << "using namespace " << string(ns, 0, ns.size() - 2) << ";" << endl << endl; in generate_service_async_skeleton()
3888 string ns = namespace_prefix(tservice->get_program()->get_namespace("cpp")); in generate_service_skeleton() local
3907 if ((!ns.empty()) && (ns.compare(" ::") != 0)) { in generate_service_skeleton()
3908 f_skeleton << "using namespace " << string(ns, 0, ns.size() - 2) << ";" << endl << endl; in generate_service_skeleton()
4322 string t_cpp_generator::namespace_prefix(string ns) { in namespace_prefix() argument
[all …]
Dt_php_generator.cc249 std::string ns = p->get_namespace("php"); in php_namespace_base() local
251 size_t position = ns.find('.'); in php_namespace_base()
253 ns.replace(position, 1, delimiter); in php_namespace_base()
254 position = ns.find('.', position + 1); in php_namespace_base()
256 return ns; in php_namespace_base()
261 string ns = php_namespace_base(p); in php_namespace() local
262 return (nsglobal_.size() ? NSGLOBAL_AB : NSGLOBAL_B) + (ns.size() ? (ns + "\\") : ""); in php_namespace()
268 string ns = php_namespace_base(p); in php_namespace_suffix() local
271 + (ns.size() && NSGLOBAL.size() ? "\\" : "") in php_namespace_suffix()
272 + ns; in php_namespace_suffix()
[all …]
Dt_js_generator.cc248 std::string ns = p->get_namespace("js"); in js_namespace_pieces() local
257 if (ns.size() > 0) { in js_namespace_pieces()
258 while ((loc = ns.find(".")) != std::string::npos) { in js_namespace_pieces()
259 pieces.push_back(ns.substr(0, loc)); in js_namespace_pieces()
260 ns = ns.substr(loc + 1); in js_namespace_pieces()
264 if (ns.size() > 0) { in js_namespace_pieces()
265 pieces.push_back(ns); in js_namespace_pieces()
292 std::string ns = p->get_namespace("js"); in has_js_namespace() local
293 return (ns.size() > 0); in has_js_namespace()
300 std::string ns = p->get_namespace("js"); in js_namespace() local
[all …]
Dt_rb_generator.cc209 std::string ns = p->get_namespace("rb"); in ruby_modules() local
211 if (ns.empty()) { in ruby_modules()
215 std::string::iterator pos = ns.begin(); in ruby_modules()
217 std::string::iterator delim = std::find(pos, ns.end(), '.'); in ruby_modules()
220 if (pos == ns.end()) { in ruby_modules()
Dt_netstd_generator.cc3365 string ns = program->get_namespace("netstd"); in type_name() local
3366 if (!ns.empty()) in type_name()
3368 return "global::" + ns + "." + the_name; in type_name()
/thrift-3.4.0/lib/php/lib/ClassLoader/
DThriftClassLoader.php142 foreach ($this->namespaces as $ns => $dirs) {
144 if (0 !== strpos($namespace, $ns)) {
175 foreach ($this->definitions as $ns => $dirs) {
177 if (0 !== strpos($namespace, $ns)) {
/thrift-3.4.0/lib/cpp/test/
DOneWayTest.thrift37 namespace xsd test (uri = 'http://thrift.apache.org/ns/OneWayTest')
/thrift-3.4.0/test/v0.16/
DThriftTest.thrift38 namespace xsd test (uri = 'http://thrift.apache.org/ns/ThriftTest')
/thrift-3.4.0/test/
DThriftTest.thrift38 namespace xsd test (uri = 'http://thrift.apache.org/ns/ThriftTest')