OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
analyse_char.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine anstckc (len_, str)

Function/Subroutine Documentation

◆ anstckc()

subroutine anstckc ( integer len_,
character(len=ncharline) str )

Definition at line 27 of file analyse_char.F.

28C-----------------------------------------------
29C M o d u l e s
30C-----------------------------------------------
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER LEN_
43 CHARACTER(LEN=NCHARLINE) :: STR
44C-----------------------------------------------
45C L o c a l V a r i a b l e s
46C-----------------------------------------------
47 INTEGER I, B, E, LENGTH
48C
49C-----------------------------------------------
50 length = len_
51 b = 1
52 e = length
53 i = 1
54
55 DO WHILE ((i<=length).AND.(str(i:i) == ' '))
56 i = i+1
57 b = i
58 END DO
59
60 i = 1
61 DO WHILE( (i<length)
62 . .AND.
63 . (str((length-i+1):(length-i+1)) == ' ') )
64 e = length-i
65 i = i+1
66 END DO
67
68 length=e-b+1
69
70 IF (length > 0) THEN
71 DO i=b, e
72 ENDDO
73 END IF
74
integer, parameter ncharline