MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / itemForPath

Method itemForPath

src/core/imap/MCIMAPNamespace.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53IMAPNamespaceItem * IMAPNamespace::itemForPath(String * path)
54{
55 for(unsigned int i = 0 ; i < mItems->count() ; i ++) {
56 IMAPNamespaceItem * item = (IMAPNamespaceItem *) mItems->objectAtIndex(i);
57 if (item->containsFolder(path))
58 return item;
59 }
60
61 return NULL;
62}
63
64String * IMAPNamespace::mainPrefix()
65{

Callers

nothing calls this directly

Calls 3

objectAtIndexMethod · 0.80
countMethod · 0.45
containsFolderMethod · 0.45

Tested by

no test coverage detected