depuseString

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 2.4, Creation date: 2015-08-01, Last change: 2025-09-14

searches for string using the system command grep

Description

This function is much faster than depuseTL or depuse, but returns all rows with the occurrence of the function. It is helpful to decide with the eye whether older functions have to be corrected when changing parameters.
Since Oct 2018 getfuncparams is used
Since Jan 2022 getfuncparamsStr is used

See Also: unixgrep , depuseTL , depuseToolbox , publishTL , pcodeTL , depfunTL , pcodedirTL , whichSG

Example Illustration

 missing image of depuseString(sstr,nocom,greps,

Syntax

[l,f]=depuseString(sstr,[nocom,greps,"sortbydate"])

Input Parameter

sstr: search string
nocom: if true; comment lines s are ignored; default is false
greps: default is *.m
"sortbydate": if used, the output is sorted by creation date

Output Parameter

l: list of lines in the files of the current dirctory
f: list of mfiles that contains the string

Examples

Search for tangentcirc
depuseString('tangentcirc') % Show all lines that use the term
depuseString('tangentcirc',true) % show all code lines that use the termi
[l,f]=depuseString('tangentcirc',true); % show only the fnct to modify




Copyright 2015-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21