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

Function decodedComponents

src/core/imap/MCIMAPNamespaceItem.cpp:137–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static Array * decodedComponents(Array * components)
138{
139 Array * result;
140
141 result = Array::array();
142 for(unsigned int i = 0 ; i < components->count() ; i ++) {
143 String * value = (String *) components->objectAtIndex(i);
144 String * decoded;
145
146 decoded = value->mUTF7DecodedString();
147 if (decoded == NULL) {
148 decoded = value;
149 }
150 result->addObject(decoded);
151 }
152
153 return result;
154}
155
156HashMap * IMAPNamespaceItem::serializable()
157{

Callers 1

componentsForPathMethod · 0.85

Calls 4

objectAtIndexMethod · 0.80
mUTF7DecodedStringMethod · 0.80
countMethod · 0.45
addObjectMethod · 0.45

Tested by

no test coverage detected