MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / alignStr

Method alignStr

Il2cppHook/_Ufunc.js:8738–8749  ·  view source on GitHub ↗
(str, size = p_size * 2 + 3, fillStr = ".")

Source from the content-addressed store, hash-verified

8736 return tmpRet;
8737 };
8738 static alignStr(str, size = p_size * 2 + 3, fillStr = ".") {
8739 str = String(str);
8740 let srcSize = str.length;
8741 if (srcSize >= size) {
8742 str = str.substring(0, size - 1);
8743 str += fillStr;
8744 }
8745 else
8746 for (let i = size - srcSize; i > 0; i--)
8747 str += " ";
8748 return str;
8749 }
8750 static getTime = () => {
8751 let today = new Date();
8752 return today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();

Callers 6

attachMethodInfoMethod · 0.45
_Ufunc.jsFile · 0.45
toStringMethod · 0.45
toShowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected