Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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

if sum(ispc = = length(ispc)  ) 
 

if Opt.Deblank nCnext  ) 
 

if isempty(Loc  ) 
 

if cpos  ,
nC 
 

end if isfield(Opt,'Deblank')|isempty(Opt.Deblank)  ) 
 

if nargin  = = 3  ) 
 

while ispc(cnt2  ) 
 

while ispc(cnt)   ) 
 


Variable Documentation

case
 

Definition at line 90 of file NextString.m.

end cend = nC-cpos
 

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().

end Cnext = ''
 

Definition at line 116 of file NextString.m.

cnt = 1
 

Definition at line 110 of file NextString.m.

cnt2 = nCnext
 

Definition at line 114 of file NextString.m.

see FindChar for special characters Note that Delim is included in Cnext cpos
 

Definition at line 1 of file NextString.m.

Debug Flag DBG = 1
 

Definition at line 55 of file NextString.m.

end Opt Deblank = 0
 

Definition at line 61 of file NextString.m.

end[err, Loc] = FindChar (C(cpos:nC), Delim)
 

Definition at line 74 of file NextString.m.

end end err = 1
 

Definition at line 120 of file NextString.m.

function[err, Cnext, cend]
 

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.

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
 

Definition at line 15 of file NextString.m.

ispc = isspace(Cnext)
 

Definition at line 102 of file NextString.m.

case n
 

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.

nC = length(C)
 

Definition at line 67 of file NextString.m.

nCnext = length(Cnext)
 

Definition at line 99 of file NextString.m.

else switch Delim case NewLine
 

Definition at line 80 of file NextString.m.

case offset = -1
 

Definition at line 89 of file NextString.m.

otherwise
 

Definition at line 92 of file NextString.m.

return
 

Definition at line 121 of file NextString.m.

case Space
 

Definition at line 88 of file NextString.m.

case t
 

Definition at line 86 of file NextString.m.

case Tab
 

Definition at line 84 of file NextString.m.

see FindChar for special characters Note that Delim is included in Cnext removes trailing white spaces (tab, newline, formfeed). % %Output Parameters Warning
 

Definition at line 15 of file NextString.m.

 

Powered by Plone

This site conforms to the following standards: