MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / touppercase

Function touppercase

libcppcryptfs/util/util.cpp:555–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555bool touppercase(LPCWSTR in, wstring& out)
556{
557
558 WCHAR *buf;
559
560 TempBuffer<WCHAR, 2048> tmp(wcslen(in) + 1);
561
562 bool bRet = true;
563
564 if (buf = tmp.get()) {
565
566 size_t len = wcslen(in);
567
568 wcscpy_s(buf, len+1, in);
569
570 CharUpperBuff(buf, (DWORD)len);
571
572 out = buf;
573
574 } else {
575 bRet = false;
576 }
577
578 return bRet;
579}
580
581int compare_names(CryptContext *con, LPCWSTR name1, LPCWSTR name2)
582{

Callers 12

ConvertMethod · 0.85
CryptCaseStreamsCallbackFunction · 0.85
OpenFileMethod · 0.85
CloseFileMethod · 0.85
GetOpenFileMethod · 0.85
RenameMethod · 0.85
GetPathHashFunction · 0.85
storeMethod · 0.85
lookupMethod · 0.85
removeMethod · 0.85
purgeMethod · 0.85
renameMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected