MCPcopy Create free account

hub / github.com/SamuelSchlesinger/tshts / functions

Functions1,456 in github.com/SamuelSchlesinger/tshts

↓ 1 callersMethodinsert_row
(&mut self)
src/application/state/clipboard.rs:364
↓ 1 callersFunctioninstall_panic_hook
()
src/main.rs:119
↓ 1 callersMethodinvalidate_stats_cache
(&mut self)
src/application/state/mod.rs:736
↓ 1 callersMethodis_cell_selected
(&self, row: usize, col: usize)
src/application/state/mod.rs:657
↓ 1 callersFunctionis_error_literal
Does `value` look like an Excel-style error literal? Used to highlight error cells in red. We check membership in the closed set rather than a pattern
src/presentation/ui/grid.rs:20
↓ 1 callersFunctionis_loading
True if `url` currently has a Loading entry — i.e. a fetch is in flight (or seeded as such). Used to assert that `fetch()` enqueued a request on first
src/infrastructure/fetcher.rs:477
↓ 1 callersMethodis_parallel_safe
True if a formula with this purity can be safely dispatched on a rayon worker as part of a level batch. Pure / VolatileClock / VolatileRandom qualify;
src/domain/parser/mod.rs:464
↓ 1 callersMethodis_volatile
(self)
src/domain/parser/mod.rs:479
↓ 1 callersFunctionlayer_for_render
(base: CellStyle, cf: CellStyle)
src/presentation/ui/mod.rs:43
↓ 1 callersFunctionlayer_style
(base: CellStyle, over: &CellStyle)
src/domain/models/spreadsheet/mod.rs:997
↓ 1 callersMethodmap_ast_refs
Maps all cell references in an AST using the given function. Absolute-row/col markers are preserved on output even when remapped. `map_ref` returning
src/domain/services/evaluator/adjust.rs:317
↓ 1 callersMethodmap_qualified_ast_refs
AST walker that applies `map_ref` only to cell references whose sheet qualifier matches `target_sheet` (case-insensitive). Refs without a sheet qualif
src/domain/services/evaluator/cross_sheet.rs:98
↓ 1 callersMethodmaybe_extend_table
(&mut self, row: usize, col: usize)
src/application/state/mod.rs:476
↓ 1 callersFunctionmaybe_save
Called from the main loop each tick. If autosave is enabled, the workbook is dirty, the last edit was more than IDLE ago, and no save is already in fl
src/infrastructure/autosave.rs:112
↓ 1 callersMethodmove_after_edit
(&mut self, dir: EditExitDir)
src/application/state/editing.rs:71
↓ 1 callersMethodname
(&self)
tests/common/scenarios/dcf.rs:44
↓ 1 callersFunctionnpv
(initial_cf: f64, growth: f64, rate: f64, years: usize)
tests/common/scenarios/sensitivity.rs:25
↓ 1 callersMethodparse_and_evaluate
Parses and evaluates an expression using the new parser. Uses a thread-local LRU cache so repeated formulas (common during paste/ autofill) don't re-t
src/domain/services/evaluator/mod.rs:147
↓ 1 callersMethodparse_argument_list
Parses function argument lists.
src/domain/parser/parser_impl.rs:501
↓ 1 callersFunctionparse_iso_date
Parse `YYYY-MM-DD` into (year, month, day).
src/domain/parser/mod.rs:651
↓ 1 callersMethodparse_primary
Parses primary expressions (highest precedence).
src/domain/parser/parser_impl.rs:323
↓ 1 callersFunctionparse_sum_from_status
(status: &str)
tests/common/scenarios/mod.rs:339
↓ 1 callersMethodpaste_tsv
(&mut self, text: &str)
src/application/state/clipboard.rs:266
↓ 1 callersFunctionpercentile_inc
Excel-style PERCENTILE.INC: linear interpolation across the sorted array. `sorted` is in descending order here; reverse internally.
tests/common/scenarios/leaderboard.rs:123
↓ 1 callersFunctionperform_fetch
(client: Option<&reqwest::blocking::Client>, url: &str)
src/infrastructure/fetcher.rs:138
↓ 1 callersMethodpopulate
(&self, h: &mut Harness, i: &Inputs)
tests/common/scenarios/dcf.rs:77
↓ 1 callersMethodpurity
Look up a function's purity. Returns `Pure` for unknown functions — the formula walker will surface an error elsewhere if the function name itself is
src/domain/parser/registry.rs:77
↓ 1 callersFunctionquarter_of
(month: u8)
tests/common/scenarios/quarterly_forecast.rs:28
↓ 1 callersFunctionr_squared
(xs: &[f64], ys: &[f64])
tests/common/scenarios/regression.rs:37
↓ 1 callersFunctionread_cell_numeric
Read the numeric value at the given cell. Uses the Visual-mode status-bar trick: in Visual mode the status bar shows `SUM=… AVG=… COUNT=…` for the cur
tests/common/scenarios/mod.rs:281
↓ 1 callersMethodread_error_literal
Gets the next token from the input. Match the longest known Excel error literal starting at the current `#`. Longest-first ordering matters: `#DIV/0!`
src/domain/parser/lexer.rs:187
↓ 1 callersMethodread_identifier
Reads an identifier or cell reference. Cell refs may include `$`. Dotted function names (`STDEV.S`) and structured table refs (`Table1[Col1]`) are fol
src/domain/parser/lexer.rs:79
↓ 1 callersMethodread_number
Reads a number token (integer or decimal).
src/domain/parser/lexer.rs:44
↓ 1 callersMethodread_string
Reads a string literal (between quotes).
src/domain/parser/lexer.rs:115
↓ 1 callersFunctionrec
(s: &[char], p: &[char])
src/domain/parser/mod.rs:591
↓ 1 callersMethodrecalc_via_graph_inner
( &mut self, )
src/domain/models/workbook.rs:684
↓ 1 callersMethodrefresh_cell_value
Force a single cell to re-evaluate its formula and refresh `value`. Used by the workbook executor (per-cell eval inside a recalc pass) and by cross-sh
src/domain/models/spreadsheet/mod.rs:366
↓ 1 callersMethodregister_builtin_functions
Registers all built-in spreadsheet functions.
src/domain/parser/registry.rs:85
↓ 1 callersMethodregister_cross_sheet_deps_batch
Batch variant of `register_cross_sheet_deps`. Calling `register_cross_sheet_deps` in a loop is O(N × formula_size) per cell which is fine — the per-ca
src/domain/models/workbook.rs:1475
↓ 1 callersMethodremap_row_references
Remaps row references in a formula using the given old→new row map. Cells whose row is in the map are remapped; references outside the map are left al
src/domain/services/evaluator/adjust.rs:273
↓ 1 callersFunctionrender_chart_popup
(f: &mut Frame, app: &App)
src/presentation/ui/popups.rs:16
↓ 1 callersFunctionrender_command_suggestions
(f: &mut Frame, app: &App, status_area: Rect)
src/presentation/ui/popups.rs:191
↓ 1 callersFunctionrender_formula_bar
(f: &mut Frame, app: &App, area: Rect)
src/presentation/ui/header.rs:15
↓ 1 callersFunctionrender_function_autocomplete
(f: &mut Frame, app: &App, status_area: Rect)
src/presentation/ui/popups.rs:115
↓ 1 callersFunctionrender_header
(f: &mut Frame, app: &App, area: Rect)
src/presentation/ui/header.rs:36
↓ 1 callersFunctionrender_help_popup
(f: &mut Frame, app: &App)
src/presentation/ui/help.rs:15
↓ 1 callersFunctionrender_recent_files
(f: &mut Frame, status_area: Rect)
src/presentation/ui/popups.rs:163
↓ 1 callersFunctionrender_sheet_tabs
(f: &mut Frame, app: &App, area: Rect)
src/presentation/ui/header.rs:96
↓ 1 callersFunctionrender_spreadsheet
(f: &mut Frame, app: &mut App, area: Rect)
src/presentation/ui/grid.rs:215
↓ 1 callersFunctionrender_status_bar
(f: &mut Frame, app: &mut App, area: Rect)
src/presentation/ui/status_bar.rs:16
↓ 1 callersFunctionrender_ui
(f: &mut Frame, app: &mut App)
src/presentation/ui/mod.rs:72
↓ 1 callersFunctionrender_vim_pending
(app: &App)
src/presentation/ui/status_bar.rs:198
↓ 1 callersMethodrendered_text_checks
Optional rendered-text checks — for cells where the user-visible rendering (currency-formatted, percent-formatted, etc.) is what matters and the raw n
tests/common/scenarios/mod.rs:127
↓ 1 callersFunctionreplace_sheet_refs_with_ref_error
Walk `formula` and replace every reference to `removed_sheet` (whether bare `Sheet1!A1` or quoted `'My Sheet'!A1:B10`) with the literal `#REF!`. Excel
src/domain/models/refs.rs:99
↓ 1 callersMethodrequest_load_file
(&mut self)
src/application/state/lifecycle.rs:18
↓ 1 callersMethodresolve_3d_range
Walk a Sheet1:Sheet3 range and produce every sheet in `[lo..=hi]`. Errors if either endpoint is unknown or no workbook is in scope.
src/domain/parser/evaluator/mod.rs:765
↓ 1 callersMethodrevert
Roll the workbook back to the state before this action was applied. Used by `App::undo`. Returns any non-fatal recalc error so the caller can surface
src/application/state/undo.rs:99
↓ 1 callersFunctionrewrite_sheet_refs_for_name_value
Variant of `rewrite_sheet_refs` for named-range *values* (not formulas). Named-range values look like `Sheet1!A1:B10` (no leading `=`), so we prepend
src/domain/models/refs.rs:88
↓ 1 callersFunctionrun_app
( terminal: &mut Terminal<B>, app: &mut App, terminate: Arc<AtomicBool>, )
src/main.rs:128
↓ 1 callersFunctionrun_pair_with_seed
Generate one parity workbook with the given seed, run it through both executors, return both for comparison.
src/domain/services/executor.rs:747
↓ 1 callersFunctionseed_rand
()
src/domain/parser/registry_fns/numeric.rs:631
↓ 1 callersFunctionserial_to_date_pub
Public alias for use by the XLSX importer, which needs to render Excel date serials as ISO strings instead of bare floats.
src/domain/parser/mod.rs:632
↓ 1 callersFunctionset_file_writer
Install the process-wide file writer. First caller wins (`OnceLock` semantics); subsequent calls are no-ops. The application installs the real writer
src/domain/services/file_writer.rs:29
↓ 1 callersFunctionset_http_fetcher
Install the process-wide HTTP fetcher. Idempotent in the sense that the first caller wins; subsequent calls are no-ops (matching `OnceLock` semantics)
src/domain/services/http.rs:43
↓ 1 callersFunctionset_text
(app: &mut App, row: usize, col: usize, s: &str)
src/presentation/input/dialogs.rs:406
↓ 1 callersFunctionset_text
(app: &mut App, row: usize, col: usize, s: &str)
src/presentation/input/visual/tests.rs:23
↓ 1 callersFunctionset_text
(app: &mut App, row: usize, col: usize, s: &str)
src/presentation/input/normal/tests.rs:23
↓ 1 callersMethodskip_whitespace
Skips whitespace characters.
src/domain/parser/lexer.rs:33
↓ 1 callersFunctionslope_intercept
(xs: &[f64], ys: &[f64])
tests/common/scenarios/regression.rs:25
↓ 1 callersMethodstart_csv_export
(&mut self)
src/application/state/io.rs:197
↓ 1 callersMethodstart_search
(&mut self)
src/application/state/search.rs:6
↓ 1 callersMethodstatus_bar
Returns the status-bar text row. The status bar is a 3-row bordered block at the bottom of the screen (rows ROWS-3..ROWS); the actual text lives on th
tests/common/mod.rs:261
↓ 1 callersFunctionstrip_xlfn_prefixes
Strip Excel's `_xlfn.` and `_xlfn._xlws.` prefixes from function names. These prefixes appear in formulas saved by newer Excel versions to disambiguat
src/infrastructure/xlsx.rs:168
↓ 1 callersFunctionstyle_index
Look up the style-table index for a cell's format. Returns 0 (default) when no format is set.
src/infrastructure/xlsx.rs:255
↓ 1 callersFunctiontake_status_message
Drain the next autosave status (success or failure), if any. Returns `(message, is_error)`. The main loop should call this each tick and surface non-e
src/infrastructure/autosave.rs:147
↓ 1 callersFunctiontax_owed
(income: f64)
tests/common/scenarios/tax.rs:43
↓ 1 callersFunctiontoday_serial
Excel serial value for the current day (midnight). Reads the `RECALC_CLOCK` thread-local if a recalc is in scope, otherwise falls back to the live sys
src/domain/parser/mod.rs:780
↓ 1 callersMethodtry_short_circuit
Lazy dispatch for control-flow functions that must NOT eagerly evaluate every argument. Returns `Ok(Some(value))` when the call was dispatched (and th
src/domain/parser/evaluator/mod.rs:468
↓ 1 callersMethodupdate_unified_graph_and_purity
Re-derive the unified graph edges + purity classification for a single cell. Called from `register_cross_sheet_deps` so every interactive cell-mutatio
src/domain/models/workbook.rs:1361
↓ 1 callersFunctionvalidation_passes
(app: &App, value: &str, predicate: &str)
src/presentation/ui/grid.rs:197
↓ 1 callersMethodvim_enter_insert
(&mut self)
src/application/state/editing.rs:26
↓ 1 callersMethodvim_enter_insert_at_end
(&mut self)
src/application/state/editing.rs:31
↓ 1 callersMethodvim_motion_row_first_data
(&mut self)
src/application/state/vim.rs:131
↓ 1 callersMethodvim_open_row_above
(&mut self)
src/application/state/editing.rs:50
↓ 1 callersMethodvim_open_row_below
(&mut self)
src/application/state/editing.rs:36
↓ 1 callersMethodvim_paste_above
(&mut self)
src/application/state/clipboard.rs:21
↓ 1 callersMethodvim_paste_below
(&mut self)
src/application/state/clipboard.rs:6
↓ 1 callersMethodvim_substitute_cell
(&mut self)
src/application/state/editing.rs:60
↓ 1 callersMethodvim_substitute_row
(&mut self)
src/application/state/editing.rs:65
↓ 1 callersFunctionwait_until_idle
Block until the worker thread reports completion (or the timeout fires). Called from the shutdown path after `flush_now`.
src/infrastructure/autosave.rs:183
↓ 1 callersFunctionwalk_purity
(expr: &Expr, registry: &FunctionRegistry, acc: &mut FunctionPurity)
src/domain/parser/evaluator/mod.rs:28
↓ 1 callersMethodwrite
(&self, path: &str, contents: &[u8])
src/infrastructure/atomic.rs:83
↓ 1 callersFunctionwrite_file
Write through whichever writer was installed via [`set_file_writer`]. Returns an error if no writer has been installed — tests that don't exercise fil
src/domain/services/file_writer.rs:36
Function_per_sheet_cascade_tests_moved_to_workbook_level
NOTE: Per-sheet cascade tests (test_automatic_recalculation, test_dependency_chain_recalculation, test_multiple_dependents, test_dependency_removal, t
src/domain/models/spreadsheet/tests.rs:214
Functionabs_cell
Wrap a single A1-style cell address in fully-absolute references. Idempotent.
tests/common/scenarios/mod.rs:369
Functionabs_cell_anchors_both_parts
()
tests/common/scenarios/mod.rs:441
Functionabs_range_anchors_both_endpoints
()
tests/common/scenarios/mod.rs:450
Functionadjust_preserves_sheet_qualified_refs
()
src/domain/services/evaluator/tests.rs:3310
Functionadv_chart_reflects_source_data_change
()
tests/pty_advanced.rs:120
Functionadv_comment_shows_in_status_bar
()
tests/pty_advanced.rs:216
← previousnext →401–500 of 1,456, ranked by callers