MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / isField

Function isField

Libraries/Http/HttpMultipartParser.h:47–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 [[nodiscard]] bool hasFieldName() const { return disposition.hasName; }
46 [[nodiscard]] bool hasFileName() const { return disposition.hasFileName; }
47 [[nodiscard]] bool isField() const { return isFormData() and hasFieldName() and not hasFileName(); }
48 [[nodiscard]] bool isFile() const { return isFormData() and hasFieldName() and hasFileName(); }
49 [[nodiscard]] bool hasSafeFileName() const;
50 [[nodiscard]] bool isSafeFile() const { return isFile() and hasSafeFileName(); }

Callers

nothing calls this directly

Calls 3

isFormDataFunction · 0.85
hasFieldNameFunction · 0.85
hasFileNameFunction · 0.85

Tested by

no test coverage detected