Changeset 1814 for trunk/LMDZ.TITAN/libf/muphytitan/strings.F90
- Timestamp:
- Oct 30, 2017, 11:04:45 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/muphytitan/strings.F90
r1808 r1814 219 219 !! 220 220 !! @warning 221 !! It is always limited to strings::st_slencharacters.221 !! It is always limited to [[strings(module):st_slen(variable)]] characters. 222 222 CHARACTER(len=st_slen) :: value = '' 223 223 #endif … … 849 849 !! 850 850 !! The method attempts to convert the list of words in a vector of strings. 851 !! If _this_ list of words is empty the output vector is allocated with 0 elements and the method returns852 !! .false. . Otherwise it returns .true.851 !! If _this_ list of words is empty, the output vector is allocated with 0 elements and the method returns 852 !! .false., otherwise it returns .true. 853 853 !! @note 854 !! If the size of the output string vector (i.e. the character length of the string elements within the855 !! v ector) is too small, words canbe truncated.854 !! If elements in __this__ words object are wider than [[strings(module):st_slen(variable)]], output 855 !! values will be truncated. 856 856 OBJECT(words), INTENT(in) :: this 857 857 !! A words object reference … … 1041 1041 !! Quotes are removed only if they are the first and last non blank 1042 1042 !! characters. Either double and single quotes are stripped without distinction. 1043 !! The output string is trimmed from leading and trailing blank spaces 1043 !! The output string is trimmed from leading and trailing blank spaces (after quotes removal !) 1044 1044 CHARACTER(len=*), INTENT(in) :: str !! A string to check 1045 1045 CHARACTER(len=:), ALLOCATABLE :: ostr !! A string without external quotes (if any). … … 1053 1053 IF (i /= 1) i = 0 1054 1054 IF (j /= LEN(ostr)) j = LEN(ostr)+1 1055 ostr = ostr(i+1:j-1)1055 ostr = TRIM(ostr(i+1:j-1)) 1056 1056 RETURN 1057 1057 END FUNCTION remove_quotes … … 1624 1624 !! The function removes list of csi (ANSI escape sequences) from the given 1625 1625 !! string and returns a copy of it. 1626 !! @note1627 !! This method does not update @lerror.1628 1626 CHARACTER(len=*), INTENT(in) :: string 1629 1627 !! Input string
Note: See TracChangeset
for help on using the changeset viewer.