MCPcopy Index your code
hub / github.com/simstudioai/sim / buildWorksheetRangeUrl

Function buildWorksheetRangeUrl

apps/sim/tools/microsoft_excel/utils.ts:193–202  ·  view source on GitHub ↗
(
  basePath: string,
  address: string | undefined,
  sheetName?: string
)

Source from the content-addressed store, hash-verified

191 * `/format/fill`, `/format/font`, or nothing for the range object itself.
192 */
193export function buildWorksheetRangeUrl(
194 basePath: string,
195 address: string | undefined,
196 sheetName?: string
197): string {
198 const resolved = resolveSheetAndAddress(address, sheetName)
199 const encodedSheet = encodeURIComponent(escapeODataString(resolved.sheetName))
200 const encodedAddress = encodeURIComponent(resolved.address)
201 return `${basePath}/workbook/worksheets('${encodedSheet}')/range(address='${encodedAddress}')`
202}
203
204export function trimTrailingEmptyRowsAndColumns(matrix: ExcelCellValue[][]): ExcelCellValue[][] {
205 if (!Array.isArray(matrix) || matrix.length === 0) return []

Callers 3

format_range.tsFile · 0.90
clear_range.tsFile · 0.90
sort_range.tsFile · 0.90

Calls 2

resolveSheetAndAddressFunction · 0.85
escapeODataStringFunction · 0.70

Tested by

no test coverage detected