Docs/Site_SVD/Data_Str2Num.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!perl
2 #
3 # The copyright notice and plain old documentation (POD)
4 # are at the end of this file.
5 #
6 package Docs::Site_SVD::Data_Str2Num;
7
8 use strict;
9 use warnings;
10 use warnings::register;
11
12 use vars qw($VERSION $DATE $FILE );
13 $VERSION = '0.07';
14 $DATE = '2004/05/22';
15 $FILE = __FILE__;
16
17 use vars qw(%INVENTORY);
18 %INVENTORY = (
19 'lib/Docs/Site_SVD/Data_Str2Num.pm' => [qw(0.07 2004/05/22), 'revised 0.06'],
20 'MANIFEST' => [qw(0.07 2004/05/22), 'generated, replaces 0.06'],
21 'Makefile.PL' => [qw(0.07 2004/05/22), 'generated, replaces 0.06'],
22 'README' => [qw(0.07 2004/05/22), 'generated, replaces 0.06'],
23 'lib/Data/Str2Num.pm' => [qw(0.08 2004/05/22), 'revised 0.05'],
24 't/Data/Str2Num.d' => [qw(0.03 2004/05/19), 'unchanged'],
25 't/Data/Str2Num.pm' => [qw(0.04 2004/05/19), 'unchanged'],
26 't/Data/Str2Num.t' => [qw(0.04 2004/05/19), 'unchanged'],
27 't/Data/File/Package.pm' => [qw(1.17 2004/05/22), 'unchanged'],
28 't/Data/Test/Tech.pm' => [qw(1.26 2004/05/22), 'unchanged'],
29 't/Data/Data/Secs2.pm' => [qw(1.26 2004/05/22), 'revised 1.23'],
30 't/Data/Data/Startup.pm' => [qw(0.07 2004/05/22), 'revised 0.06'],
31
32 );
33
34 ########
35 # The ExtUtils::SVDmaker module uses the data after the __DATA__
36 # token to automatically generate this file.
37 #
38 # Don't edit anything before __DATA_. Edit instead
39 # the data after the __DATA__ token.
40 #
41 # ANY CHANGES MADE BEFORE the __DATA__ token WILL BE LOST
42 #
43 # the next time ExtUtils::SVDmaker generates this file.
44 #
45 #
46
47
48
49 =head1 NAME
50
51 Docs::Site_SVD::Data_Str2Num - int str to int; float str to float; else undef. No warnings.
52
53 =head1 Title Page
54
55 Software Version Description
56
57 for
58
59 Docs::Site_SVD::Data_Str2Num - int str to int; float str to float; else undef. No warnings.
60
61 Revision: D
62
63 Version: 0.07
64
65 Date: 2004/05/22
66
67 Prepared for: General Public
68
69 Prepared by: SoftwareDiamonds.com E<lt>support@SoftwareDiamonds.comE<gt>
70
71 Copyright: copyright © 2003 Software Diamonds
72
73 Classification: NONE
74
75 =head1 1.0 SCOPE
76
77 This paragraph identifies and provides an overview
78 of the released files.
79
80 =head2 1.1 Identification
81
82 This release,
83 identified in L<3.2|/3.2 Inventory of software contents>,
84 is a collection of Perl modules that
85 extend the capabilities of the Perl language.
86
87 =head2 1.2 System overview
88
89 The "L<Data::Str2Num|Data::Str2Num>" module extends the Perl language (the system).
90
91 The "Data::Str2Num" package translates an scalar string to a scalar integer.
92 The package handles parser out of wide range of integers and floats from
93 an alphanumeric string in different formats.
94
95 Perl itself has a documented function, '0+$x', that converts a scalar to
96 so that its internal storage is an integer
97 (See p.351, 3rd Edition of Programming Perl).
98 If it cannot perform the conversion, it leaves the integer 0.
99 Surprising not all Perls, some Microsoft Perls in particular, may leave
100 the internal storage as a scalar string.
101
102 The "str2int" function is basically the same except if it cannot perform
103 the conversion to an integer, it returns an "undef" instead of a 0.
104 Also, if the string is a decimal or floating point, it will return an undef.
105 This makes it not only useful for forcing an integer conversion but
106 also for testing a scalar to see if it is in fact an integer scalar.
107
108 =head2 1.3 Document overview.
109
110 This document releases Data::Str2Num version 0.07
111 providing a description of the inventory, installation
112 instructions and other information necessary to
113 utilize and track this release.
114
115 =head1 3.0 VERSION DESCRIPTION
116
117 All file specifications in this SVD
118 use the Unix operating
119 system file specification.
120
121 =head2 3.1 Inventory of materials released.
122
123 This document releases the file
124
125 Data-Str2Num-0.07.tar.gz
126
127 found at the following repository(s):
128
129 http://www.softwarediamonds/packages/
130 http://www.perl.com/CPAN/authors/id/S/SO/SOFTDIA/
131
132 Restrictions regarding duplication and license provisions
133 are as follows:
134
135 =over 4
136
137 =item Copyright.
138
139 copyright © 2003 Software Diamonds
140
141 =item Copyright holder contact.
142
143 603 882-0846 E<lt>support@SoftwareDiamonds.comE<gt>
144
145 =item License.
146
147 Software Diamonds permits the redistribution
148 and use in source and binary forms, with or
149 without modification, provided that the
150 following conditions are met:
151
152 =over 4
153
154 =item 1
155
156 Redistributions of source code, modified or unmodified
157 must retain the above copyright notice, this list of
158 conditions and the following disclaimer.
159
160 =item 2
161
162 Redistributions in binary form must
163 reproduce the above copyright notice,
164 this list of conditions and the following
165 disclaimer in the documentation and/or
166 other materials provided with the
167 distribution.
168
169 =item 3
170
171 The installation of the binary or source
172 must visually present to the installer
173 the above copyright notice,
174 this list of conditions intact,
175 that the original source is available
176 at http://softwarediamonds.com
177 and provide means
178 for the installer to actively accept
179 the list of conditions.
180
181 =back
182
183 SOFTWARE DIAMONDS, http://www.SoftwareDiamonds.com,
184 PROVIDES THIS SOFTWARE
185 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES,
186 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
187 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
188 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
189 SHALL SOFTWARE DIAMONDS BE LIABLE FOR ANY DIRECT,
190 INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR
191 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
192 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
193 LOSS OF USE,DATA, OR PROFITS; OR BUSINESS
194 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
195 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
196 OR TORT (INCLUDING USE OF THIS SOFTWARE, EVEN IF
197 ADVISED OF NEGLIGENCE OR OTHERWISE) ARISING IN
198 ANY WAY OUT OF THE POSSIBILITY OF SUCH DAMAGE.
199
200 =back
201
202 =head2 3.2 Inventory of software contents
203
204 The content of the released, compressed, archieve file,
205 consists of the following files:
206
207 file version date comment
208 ------------------------------------------------------------ ------- ---------- ------------------------
209 lib/Docs/Site_SVD/Data_Str2Num.pm 0.07 2004/05/22 revised 0.06
210 MANIFEST 0.07 2004/05/22 generated, replaces 0.06
211 Makefile.PL 0.07 2004/05/22 generated, replaces 0.06
212 README 0.07 2004/05/22 generated, replaces 0.06
213 lib/Data/Str2Num.pm 0.08 2004/05/22 revised 0.05
214 t/Data/Str2Num.d 0.03 2004/05/19 unchanged
215 t/Data/Str2Num.pm 0.04 2004/05/19 unchanged
216 t/Data/Str2Num.t 0.04 2004/05/19 unchanged
217 t/Data/File/Package.pm 1.17 2004/05/22 unchanged
218 t/Data/Test/Tech.pm 1.26 2004/05/22 unchanged
219 t/Data/Data/Secs2.pm 1.26 2004/05/22 revised 1.23
220 t/Data/Data/Startup.pm 0.07 2004/05/22 revised 0.06
221
222
223 =head2 3.3 Changes
224
225 Changes are as follows:
226
227 =over 4
228
229 =item Data::Str2Num 0.01
230
231 Originated
232
233 =item Data::Str2Num 0.02
234
235 Added 1 to end of the code section.
236 Unix Perls very strict about this one.
237
238 =item Data::Str2Num 0.03
239
240 Change the test so that test support program modules resides in distribution
241 directory tlib directory instead of the lib directory.
242 Because they are no longer in the lib directory,
243 test support files will not be installed as a pre-condition for the
244 test of this module.
245 The test of this module will precede immediately.
246 The test support files in the tlib directory will vanish after
247 the installtion.
248
249 =item Data::Str2Num 0.04
250
251 The lastest build of Test::STDmaker expects the test library in the same
252 directory as the test script.
253 Coordiated with the lastest Test::STDmaker by moving the
254 test library from tlib to t/Data, the same directory as the test script
255 and deleting the test library File::TestPath program module.
256
257 The C<Data::Str2Num> module is now obsolete and superceded by
258 the C<Data::SecsPack> module.
259 Replace all subroutines to call the compatible subroutines
260 in the C<Data:SecsPack> module
261 and make any necessary manipulates to
262 provide exact equivalent of the old C<Data::Str2Num> subroutines.
263
264 =item Data::Str2Num 0.05
265
266 Changed the abstract to 'obsoleted by Data::Secs2'
267
268 =item Data::Str2Num 0.06
269
270 It was a mistake to merge C<Data::Str2Num> subroutines with
271 the C<Data::Secs2> and C<Data::SecsPack> modules.
272 These are specialized modules. There are many cases
273 where do not need nor want all that SEMI E5 support.
274 Keep these separate means one does not have to deal
275 with all that SEMI business if one just needs
276 the functionality of these subroutines.
277
278 =item Data::Str2Num 0.07
279
280 In C<str2integer> and C<str2float> subroutine, skip
281 empty and undef strings. Processing produces all kinds of
282 uninitialize errors.
283
284 Add documentation for the C<str2int> subroutine.
285
286 =back
287
288 =head2 3.4 Adaptation data.
289
290 This installation requires that the installation site
291 has the Perl programming language installed.
292 There are no other additional requirements or tailoring needed of
293 configurations files, adaptation data or other software needed for this
294 installation particular to any installation site.
295
296 =head2 3.5 Related documents.
297
298 There are no related documents needed for the installation and
299 test of this release.
300
301 =head2 3.6 Installation instructions.
302
303 Instructions for installation, installation tests
304 and installation support are as follows:
305
306 =over 4
307
308 =item Installation Instructions.
309
310 To installed the release file, use the CPAN module
311 pr PPM module in the Perl release
312 or the INSTALL.PL script at the following web site:
313
314 http://packages.SoftwareDiamonds.com
315
316 Follow the instructions for the the chosen installation software.
317
318 If all else fails, the file may be manually installed.
319 Enter one of the following repositories in a web browser:
320
321 http://www.softwarediamonds/packages/
322 http://www.perl.com/CPAN/authors/id/S/SO/SOFTDIA/
323
324 Right click on 'Data-Str2Num-0.07.tar.gz' and download to a temporary
325 installation directory.
326 Enter the following where $make is 'nmake' for microsoft
327 windows; otherwise 'make'.
328
329 gunzip Data-Str2Num-0.07.tar.gz
330 tar -xf Data-Str2Num-0.07.tar
331 perl Makefile.PL
332 $make test
333 $make install
334
335 On Microsoft operating system, nmake, tar, and gunzip
336 must be in the exeuction path. If tar and gunzip are
337 not install, download and install unxutils from
338
339 http://packages.softwarediamonds.com
340
341 =item Prerequistes.
342
343 None.
344
345
346 =item Security, privacy, or safety precautions.
347
348 None.
349
350 =item Installation Tests.
351
352 Most Perl installation software will run the following test script(s)
353 as part of the installation:
354
355 t/Data/Str2Num.t
356
357 =item Installation support.
358
359 If there are installation problems or questions with the installation
360 contact
361
362 603 882-0846 E<lt>support@SoftwareDiamonds.comE<gt>
363
364 =back
365
366 =head2 3.7 Possible problems and known errors
367
368 There is still much work needed to ensure the quality
369 of this module as follows:
370
371 =over 4
372
373 =item *
374
375 State the functional requirements for each method
376 including not only the GO paths but also what to
377 expect for the NOGO paths
378
379 =item *
380
381 All the tests are GO path tests. Should add
382 NOGO tests.
383
384 =item *
385
386 Add the requirements addressed as I<# R: >
387 comment to the tests
388
389 =item *
390
391 Write a program to build a matrix to trace
392 test step to the requirements and vice versa by
393 parsing the I<# R: > comments.
394 Automatically insert the matrix in the
395 Test::TestUtil POD.
396
397 =back
398
399 =head1 4.0 NOTES
400
401 The following are useful acronyms:
402
403 =over 4
404
405 =item .d
406
407 extension for a Perl demo script file
408
409 =item .pm
410
411 extension for a Perl Library Module
412
413 =item .t
414
415 extension for a Perl test script file
416
417 =back
418
419 =head1 2.0 SEE ALSO
420
421 =over 4
422
423 =item L<Docs::US_DOD::SVD|Docs::US_DOD::SVD>
424
425 =back
426
427 =for html
428
429
430 =cut
431
432 1;
433
434 __DATA__