X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Ftextprocessing.cpp;h=d979d301b010e14a9f88ed8db8038e4997fc3bfa;hb=2077fd3163afbf00561d4d4030a087ffded67a81;hp=d4aee6b05666c539e1cab2e7193b6d68404553af;hpb=97ebb2bdd18e21f4ed3e7a99e91b411cf5827324;p=xestiaab%2F.git diff --git a/source/common/textprocessing.cpp b/source/common/textprocessing.cpp index d4aee6b..d979d30 100644 --- a/source/common/textprocessing.cpp +++ b/source/common/textprocessing.cpp @@ -106,6 +106,34 @@ void DeleteMapDataProcess(int IndexNum, std::map* MapData){ MapData->erase(IndexNum); } +bool MapDataExists(int *ItemIndex, std::map *MapPtr){ + + if (MapPtr->find(*ItemIndex) == MapPtr->end()){ + + return FALSE; + + } else { + + return TRUE; + + } + +} + +bool MapDataExists(int *ItemIndex, std::map *MapPtr){ + + if (MapPtr->find(*ItemIndex) == MapPtr->end()){ + + return FALSE; + + } else { + + return TRUE; + + } + +} + /* template void DeleteMapData(ArgMap* ArgMapPtr, Args*... ArgsList){