Ignore:
Timestamp:
Oct 30, 2017, 11:04:45 AM (7 years ago)
Author:
jvatant
Message:

Correct string management within muphy for ifort
JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/muphytitan/strings.F90

    r1808 r1814  
    219219    !!
    220220    !! @warning
    221     !! It is always limited to strings::st_slen characters.
     221    !! It is always limited to [[strings(module):st_slen(variable)]] characters.
    222222    CHARACTER(len=st_slen)        :: value = ''
    223223#endif
     
    849849    !!
    850850    !! 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 returns
    852     !! .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.
    853853    !! @note
    854     !! If the size of the output string vector (i.e. the character length of the string elements within the
    855     !! vector) is too small, words can be truncated.
     854    !! If elements in __this__ words object are wider than [[strings(module):st_slen(variable)]], output
     855    !! values will be truncated.
    856856    OBJECT(words), INTENT(in)                                      :: this
    857857      !! A words object reference
     
    10411041    !! Quotes are removed only if they are the first and last non blank
    10421042    !! 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 !)
    10441044    CHARACTER(len=*), INTENT(in)  :: str  !! A string to check
    10451045    CHARACTER(len=:), ALLOCATABLE :: ostr !! A string without external quotes (if any). 
     
    10531053    IF (i /= 1) i = 0
    10541054    IF (j /= LEN(ostr)) j = LEN(ostr)+1
    1055     ostr = ostr(i+1:j-1)
     1055    ostr = TRIM(ostr(i+1:j-1))
    10561056    RETURN
    10571057  END FUNCTION remove_quotes
     
    16241624    !! The function removes list of csi (ANSI escape sequences) from the given
    16251625    !! string and returns a copy of it.
    1626     !! @note
    1627     !! This method does not update @lerror.
    16281626    CHARACTER(len=*), INTENT(in)      :: string
    16291627      !! Input string
Note: See TracChangeset for help on using the changeset viewer.