MCPcopy Index your code
hub / github.com/AlaSQL/alasql / encode_range

Function encode_range

modules/xlsx/xlsx.js:4233–4240  ·  view source on GitHub ↗
(cs,ce)

Source from the content-addressed store, hash-verified

4231 return { s: decode_cell(range.slice(0, idx)), e: decode_cell(range.slice(idx + 1)) };
4232}
4233function encode_range(cs,ce) {
4234 if(typeof ce === 'undefined' || typeof ce === 'number') {
4235return encode_range(cs.s, cs.e);
4236 }
4237if(typeof cs !== 'string') cs = encode_cell((cs));
4238 if(typeof ce !== 'string') ce = encode_cell((ce));
4239return cs == ce ? cs : cs + ":" + ce;
4240}
4241function fix_range(a1) {
4242 var s = decode_range(a1);
4243 return "$" + encode_col(s.s.c) + "$" + encode_row(s.s.r) + ":$" + encode_col(s.e.c) + "$" + encode_row(s.e.r);

Callers 15

sheet_add_aoaFunction · 0.70
dsv_to_sheet_strFunction · 0.70
lotus_to_workbook_bufFunction · 0.70
qpw_to_workbook_bufFunction · 0.70
rtf_to_sheet_strFunction · 0.70
sheet_insert_commentsFunction · 0.70
parse_ws_xml_dimFunction · 0.70
parse_ws_xmlFunction · 0.70
write_ws_xml_mergesFunction · 0.70
write_ws_xml_autofilterFunction · 0.70
write_ws_xmlFunction · 0.70
parse_ws_binFunction · 0.70

Calls 1

encode_cellFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…