MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toStr

Function toStr

Ports/JavaScriptPort/src/main/webapp/port.js:2551–2554  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

2549 "cn1_com_codename1_impl_html5_HTML5Implementation_loadTrueTypeFont__java_lang_String_java_lang_String_java_lang_String"
2550], function*(fontName, fontFile, fontFormat) {
2551 const toStr = function(v) {
2552 if (v == null) return "";
2553 return typeof v === "string" ? v : (jvm.toNativeString ? jvm.toNativeString(v) : String(v));
2554 };
2555 const payload = {
2556 fontName: toStr(fontName),
2557 fontUrl: toStr(fontFile),

Callers 1

port.jsFile · 0.85

Calls 1

StringClass · 0.50

Tested by

no test coverage detected