| 100 | } |
| 101 | |
| 102 | String * NetService::normalizedHostnameWithEmail(String * email) |
| 103 | { |
| 104 | Array *components = email->componentsSeparatedByString(MCSTR("@")); |
| 105 | String *hostname = (String *) mHostname->copy()->autorelease(); |
| 106 | if (components->count() != 0) { |
| 107 | hostname->replaceOccurrencesOfString(MCSTR("{domain}"), (String *) components->lastObject()); |
| 108 | return hostname; |
| 109 | } |
| 110 | return mHostname; |
| 111 | } |
| 112 | |
| 113 | HashMap * NetService::info() |
| 114 | { |
nothing calls this directly
no test coverage detected