MCPcopy Create free account
hub / github.com/cardstack/cardstack / toUpper

Function toUpper

packages/cardpay-subgraph/src/utils.ts:188–200  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

186}
187
188function toUpper(str: string): string {
189 let result = '';
190 for (let i = 0; i < str.length; i++) {
191 let charCode = str.charCodeAt(i);
192 // only operate on lowercase 'a' thru lower case 'z'
193 if (charCode >= 97 && charCode <= 122) {
194 result += String.fromCharCode(charCode - 32);
195 } else {
196 result += str.charAt(i);
197 }
198 }
199 return result;
200}
201
202function fetchTokenSymbol(tokenAddress: Address): string {
203 let staticToken = StaticToken.fromAddress(tokenAddress);

Callers 1

toChecksumAddressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected