HashString
class HashString {
HashString();
HashString(const HashString &string);
HashString(const char *string, int32 length = -1);
~HashString();
HashString &operator=(const HashString &string);
bool operator==(const HashString &string) const;
bool operator!=(const HashString &string) const { return !(*this == string); }
using BPrivate::HashString;
HashString fContext;
HashString fServer;
typedef HashMap<HashString, Authentication*> AuthenticationMap;
HashString defaultUser;
HashString defaultPassword;
HashString fContext;
HashString fServer;
HashString fShare;
HashString foundUser;
HashString foundPassword;
const char* server, const char* share, HashString* user,
HashString* password)
HashString fUser;
HashString fPassword;
HashString* user, HashString* password);
HashString addressString;
HashString fShareName;
HashString fServerName;
HashString fConnectionMethod;
HashString server;
HashString fEntryName;
HashString fName;
HashString serverAddressString;
HashString fName;
HashString fName;
class HashString;
using BPrivate::HashString;
status_t GetString(HashString* string,
void SetTo(const HashString& string)
status_t ReadString(HashString& string);
HashString fShareName;
HashString fServerName;
HashString fConnectionMethod;
HashString fName;
HashString fName;
HashString name;
HashString name; // filled in later
HashString fromName; // filled in later
HashString toName;
HashString attribute;
HashString path;
SecurityContext::_AddNodePath(const node_ref& ref, HashString* _path)
struct SecurityContext::UserMap : HashMap<HashString, User*> {
struct SecurityContext::ShareMap : HashMap<HashString, Share*> {
HashString path;
struct SecurityContext::NodePathMap : HashMap<NodeRef, HashString> {
struct SecurityContext::PathNodeMap : HashMap<HashString, NodeRef> {
HashString path;
HashString path;
HashString* path = NULL);
HashString fName;
HashString fPassword;
HashString fName;
HashString fPath;
typedef HashMap<HashString, int32> UserCountMap;
HashString user(it.Next().key);
HashString fShare;
: HashMap<HashString, StatisticsManager::ShareStatistics*> {
HashString toName;
NetAddress::GetString(HashString* string, bool includePort) const
RequestUnflattener::ReadString(HashString& string)
HashString& string)
typedef HashMap<HashString,IPPPrinter*> IPPPrinterMap;
typedef HashMap<HashString,USBPrinter*> PrinterMap;
HashMap<HashString, partition_id>(),
class SpaceIDMap : public HashMap<HashString, partition_id> {
HashString key(BString() << size);
LRUCache<HashString, BitmapHolderRef>
HashString key = _ToIconCacheKey(pkgName, storedSize, size);
return fIconTarPtrs.Get(HashString(pkgName));
const HashString
return HashString(
HashString key(pkgName);
const HashString _ToIconCacheKey(const BString& pkgName, BitmapSize storedSize,
LRUCache<HashString, BitmapHolderRef>
HashMap<HashString, IconTarPtrRef>
HashString key(path);
HashString key(path);
HashString key(path);
HashString key(message);
CredentialsStorage::Contains(const HashString& key)
CredentialsStorage::PutCredentials(const HashString& key,
CredentialsStorage::GetCredentials(const HashString& key)
bool Contains(const BPrivate::HashString& key);
status_t PutCredentials(const HashString& key,
Credentials GetCredentials(const HashString& key);
HashString key(cookie->Domain());
HashString fKey;
authentication = fAuthenticationMap->Get( HashString(domain.String(),
SynchronizedHashMap<BPrivate::HashString, BHttpAuthentication*> {};
fAuthenticationMap->Put(HashString("", 0), new BHttpAuthentication());
BPrivate::HashString hostHash(domain.String(), domain.Length());
HashString::operator==(const HashString &string) const
HashString::_SetTo(const char *string, int32 length)
HashString::HashString()
HashString::HashString(const HashString &string)
HashString::HashString(const char *string, int32 length)
HashString::~HashString()
HashString::SetTo(const char *string, int32 maxLength)
HashString::Unset()
HashString::Truncate(int32 newLength)
HashString::GetString() const
HashString &
HashString::operator=(const HashString &string)
using BPrivate::HashString;
BString resultLake = map.Remove(HashString("Lake"));
CPPUNIT_ASSERT_EQUAL(BString("Tirau"), map.Get(HashString("Town")));
CPPUNIT_ASSERT_EQUAL(BString(""), map.Get(HashString("Lake")));
CPPUNIT_ASSERT_EQUAL(BString(""), map.Get(HashString("Ocean")));
LRUCache<HashString, BString> map(5);
map.Put(HashString(tmpKey), tmpValue);
CPPUNIT_ASSERT_EQUAL(BString(""), map.Get(HashString("a")));
CPPUNIT_ASSERT_EQUAL(BString(""), map.Get(HashString("u")));
CPPUNIT_ASSERT_EQUAL(BString("zz"), map.Get(HashString("z")));
CPPUNIT_ASSERT_EQUAL(BString("yy"), map.Get(HashString("y")));
CPPUNIT_ASSERT_EQUAL(BString("xx"), map.Get(HashString("x")));
CPPUNIT_ASSERT_EQUAL(BString("ww"), map.Get(HashString("w")));
CPPUNIT_ASSERT_EQUAL(BString("vv"), map.Get(HashString("v")));
LRUCache<HashString, BString> map(3);
map.Put(HashString("Red"), "Rot");
map.Put(HashString("Yellow"), "Gelb");
map.Get(HashString("Red"));
map.Put(HashString("Green"), "Gruen");
map.Put(HashString("Purple"), "Lila");
CPPUNIT_ASSERT_EQUAL(BString(""), map.Get(HashString("Yellow")));
CPPUNIT_ASSERT_EQUAL(BString("Rot"), map.Get(HashString("Red")));
CPPUNIT_ASSERT_EQUAL(BString("Gruen"), map.Get(HashString("Green")));
CPPUNIT_ASSERT_EQUAL(BString("Lila"), map.Get(HashString("Purple")));
LRUCache<HashString, BString> map(3);
map.Put(HashString("Town"), "Tirau");
map.Put(HashString("Lake"), "Taupo");
BString resultOcean = map.Remove(HashString("Ocean"));