blob: 486f6fcc1dd6118925a5926e9cc9e4fdb7044943 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
function outbool = IsNanSize(instring)
// function outbool = IsNanSize(instring)
// -----------------------------------------------------------------
// #RNU_RES_B
// It searches for __SCI2CNANSIZE string in the string which specifies the
// size of the argument. Useful to find if a given size contains
// a nan value. In this case an error is issued.
// IsNanSize = '__SCI2CNANSIZE' -> True
// IsNanSize = 'c*__SCI2CNANSIZE' -> True
// IsNanSize = 'c+b' -> False
// #RNU_RES_E
//
// Input data:
// instring: string to analyze.
//
// Output data:
// outbool: %T if nan string has been found.
//
// Status:
// 11-Feb-2008 -- Nutricato Raffaele: Author.
//
// Copyright 2008 Raffaele Nutricato.
// Contact: raffaele.nutricato@tiscali.it
// -----------------------------------------------------------------
// ------------------------------
// --- Check input arguments. ---
// ------------------------------
SCI2CNInArgCheck(argn(2),1,1);
outbool = %F;
indexval = strindex(instring,'__SCI2CNANSIZE');
if(length(indexval)>=1)
outbool = %T;
end
endfunction
|