MCPcopy Create free account
hub / github.com/ablab/spades / sortedElements

Function sortedElements

ext/src/llvm/JSON.cpp:521–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519char ParseError::ID = 0;
520
521static std::vector<const Object::value_type *> sortedElements(const Object &O) {
522 std::vector<const Object::value_type *> Elements;
523 for (const auto &E : O)
524 Elements.push_back(&E);
525 llvm::sort(Elements,
526 [](const Object::value_type *L, const Object::value_type *R) {
527 return L->first < R->first;
528 });
529 return Elements;
530}
531
532bool isUTF8(llvm::StringRef S, size_t *ErrOffset) {
533 // Fast-path for ASCII, which is valid UTF-8.

Callers 1

valueMethod · 0.85

Calls 2

sortFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected