Doxygen Source Code Documentation
NextString.m File Reference
Go to the source code of this file.
Functions | |
if (nargin==3) | |
end | if (~isfield(Opt,'Deblank')|isempty(Opt.Deblank)) |
if (cpos > nC) | |
if (isempty(Loc)) | |
if (Opt.Deblank &nCnext) | |
if (sum(ispc)==length(ispc)) | |
while (ispc(cnt)) | |
while (ispc(cnt2)) | |
Variables | |
function [err, Cnext, cend] | |
see FindChar for special characters Note that Delim is included in Cnext | cpos |
see FindChar for special characters Note that Delim is included in Cnext removes trailing white spaces(tab, newline, formfeed).%%Output Parameters | Warning |
see FindChar for special characters Note that Delim is included in Cnext removes trailing white spaces(tab, newline, formfeed).%%Output Parameters the equality on the previous line is before deblanking is done on Cnext More | Info |
see FindChar for special characters Note that Delim is included in Cnext removes trailing white spaces(tab, newline, formfeed).%%Output Parameters the equality on the previous line is before deblanking is done on Cnext More Yes Oh Yes I am nHow about You tLaddy Are You hyper | n [err, Cnext, cend] |
Debug Flag | DBG = 1 |
Opt | Deblank = 0 |
end initailize return variables | err = 1 |
Cnext = '' | |
nC = length(C) | |
return | |
end [err, Loc] = FindChar (C(cpos:nC), Delim) | |
cend = nC-cpos | |
else switch Delim case | NewLine |
else switch Delim case | offset = -1 |
case | Tab |
case | t |
case | Space |
case | |
otherwise | |
nCnext = length(Cnext) | |
ispc = isspace(Cnext) | |
else get ridd of first blanks | cnt = 1 |
end | cnt2 = nCnext |
Function Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Variable Documentation
|
Definition at line 90 of file NextString.m. |
|
Definition at line 95 of file NextString.m. Referenced by SUMA_OpenDx_Object_Attr(), SUMA_OpenDx_Object_Components(), SUMA_OpenDx_Object_Data(), and SUMA_OpenDx_Object_Header_Field(). |
|
Definition at line 116 of file NextString.m. |
|
Definition at line 110 of file NextString.m. |
|
Definition at line 114 of file NextString.m. |
|
Definition at line 1 of file NextString.m. |
|
Definition at line 55 of file NextString.m. |
|
Definition at line 61 of file NextString.m. |
|
Definition at line 74 of file NextString.m. |
|
Definition at line 120 of file NextString.m. |
|
Initial value: NextString (C, Delim, cpos, Opt) % % [err,Cnext, cend] = NextString (C, Delim, cpos, Opt) % %Purpose: % gets the next string in charachter array C that is delimited by Delim % % %Input Parameters: % C : a character array % Delim : delimitation character Definition at line 1 of file NextString.m. |
|
Definition at line 15 of file NextString.m. |
|
Definition at line 102 of file NextString.m. |
|
Initial value: NextString (ks,'.',1) % or % [err, Cnext, cend] = NextString (ks,'.',29) % [err, Cnext, cend] = NextString (ks,'?',29) % or % [err, Cnext, cend] = NextString (ks,'v',1) % or % [err, Cnext, cend] = NextString (ks,',',1) % [err, Cnext, cend] = NextString (ks,',',12) % or % [err, Cnext, cend] = NextString (ks,'NewLine',1) % [err, Cnext, cend] = NextString (ks,'Space',1) % % You get the idea right ? % % Author : Ziad Saad % Date : Sat Mar 27 14:38:45 CST 1999 %Define the function name for easy referencing FuncName = 'NextString' Definition at line 82 of file NextString.m. |
|
Definition at line 67 of file NextString.m. |
|
Definition at line 99 of file NextString.m. |
|
Definition at line 80 of file NextString.m. |
|
Definition at line 89 of file NextString.m. |
|
Definition at line 92 of file NextString.m. |
|
Definition at line 121 of file NextString.m. |
|
Definition at line 88 of file NextString.m. |
|
Definition at line 86 of file NextString.m. |
|
Definition at line 84 of file NextString.m. |
|
Definition at line 15 of file NextString.m. |