MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / guiFilterString

Method guiFilterString

source/game/StarItemDatabase.cpp:115–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115String ItemDatabase::guiFilterString(ItemPtr const& item) {
116 return (item->name() + item->friendlyName() + item->description()).toLower().splitAny(" ,.?*\\+/|\t").join("");
117}
118
119bool ItemDatabase::canMakeRecipe(ItemRecipe const& recipe, HashMap<ItemDescriptor, uint64_t> const& availableIngredients, StringMap<uint64_t> const& availableCurrencies) {
120 for (auto const& p : recipe.currencyInputs) {

Callers

nothing calls this directly

Calls 6

splitAnyMethod · 0.80
toLowerMethod · 0.80
joinMethod · 0.45
nameMethod · 0.45
friendlyNameMethod · 0.45
descriptionMethod · 0.45

Tested by

no test coverage detected