MCPcopy Create free account
hub / github.com/Kitware/VTK / Parse

Method Parse

IO/Core/vtkURI.cxx:649–672  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

647
648//------------------------------------------------------------------------------
649vtkSmartPointer<vtkURI> vtkURI::Parse(const char* uri, std::size_t size)
650{
651 if (size != 0 && !uri)
652 {
653 vtkErrorWithObjectMacro(nullptr, "Null string with non-null size");
654 return nullptr;
655 }
656
657 const auto end = uri + size;
658
659 vtkURIComponent scheme;
660 uri = ExtractScheme(uri, end, scheme);
661 vtkURIComponent auth;
662 uri = ExtractAuthority(uri, end, auth);
663 vtkURIComponent path;
664 uri = ExtractPath(uri, end, path);
665 vtkURIComponent query;
666 uri = ExtractQuery(uri, end, query);
667 vtkURIComponent frag;
668 uri = ExtractFragment(uri, end, frag);
669
670 return vtkURI::Make(
671 std::move(scheme), std::move(auth), std::move(path), std::move(query), std::move(frag));
672}
673
674//------------------------------------------------------------------------------
675vtkSmartPointer<vtkURI> vtkURI::Resolve(const vtkURI* baseURI, const vtkURI* uri)

Callers 15

ReadMetaDataMethod · 0.45
RequestDataMethod · 0.45
get_ascii_itemMethod · 0.45
RequestDataMethod · 0.45
ReadInputDeckXMLMethod · 0.45
GoMethod · 0.45
ParseFunction · 0.45
TestIntParseFunction · 0.45
TestFloatParseFunction · 0.45
TestBoolParseFunction · 0.45
TestStringParseFunction · 0.45
TestStopOnNewLineFunction · 0.45

Calls 6

ExtractSchemeFunction · 0.85
ExtractAuthorityFunction · 0.85
ExtractPathFunction · 0.85
ExtractQueryFunction · 0.85
ExtractFragmentFunction · 0.85
MakeFunction · 0.85

Tested by 14

TestIntParseFunction · 0.36
TestFloatParseFunction · 0.36
TestBoolParseFunction · 0.36
TestStringParseFunction · 0.36
TestStopOnNewLineFunction · 0.36
TestDiscardPredicateFunction · 0.36
TestSurfaceLICFunction · 0.36
ImageDataLIC2DFunction · 0.36
mainFunction · 0.36