MCPcopy Create free account
hub / github.com/PDAL/PDAL / checkElementNameLegal

Method checkElementNameLegal

plugins/e57/libE57Format/src/ImageFileImpl.cpp:552–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550 }
551
552 void ImageFileImpl::checkElementNameLegal( const ustring &elementName, bool allowNumber )
553 {
554 // no checkImageFileOpen(__FILE__, __LINE__, __FUNCTION__)
555
556 ustring prefix;
557 ustring localPart;
558
559 // Throws if bad elementName
560 elementNameParse( elementName, prefix, localPart, allowNumber );
561
562 // If has prefix, it must be registered
563 ustring uri;
564
565 if ( prefix.length() > 0 && !extensionsLookupPrefix( prefix, uri ) )
566 {
567 throw E57_EXCEPTION2( ErrorBadPathName,
568 "elementName=" + elementName + " prefix=" + prefix );
569 }
570 }
571
572 void ImageFileImpl::pathNameCheckWellFormed( const ustring &pathName )
573 {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected