1. 10 Aug, 2017 1 commit
    • Mark Olesen's avatar
      BUG: OPstream send of tokenType may swallow characters (fixes #563) · c847d343
      Mark Olesen authored
      - the tokenType was being send via write(char), which includes
        isspace filtering. If the tokenType enumeration coincides
        with a whitespace character, it would be suppressed.
      
        Now add character directly to the buffer.
      
      STYLE: some additional minor private methods to help refactoring
      
      - readStringFromBuffer, writeStringToBuffer for common string
        operation.
      c847d343
  2. 02 Aug, 2017 1 commit
    • Mark Olesen's avatar
      ENH: consolidate, cleanup some string methods · e70fc616
      Mark Olesen authored
      - consolidate word::validated() into word::validate() and also allow
        as short form for string::validate<word>(). Also less confusing than
        having similarly named methods that essentially do the same thing.
      
      - more consistent const access when iterating over strings
      
      - add valid(char) for keyType and wordRe
      e70fc616
  3. 10 Mar, 2017 1 commit
  4. 10 Jun, 2016 1 commit
  5. 02 Jun, 2016 1 commit
    • Mark Olesen's avatar
      BUG: UOPstream indexes out of bounds after whitespace stripping (fixes #134) · 5d29b498
      Mark Olesen authored
      - only affects transfer of C-style string with a single character
        remaining after whitespace stripping. Test added into Test-parallel.
      
      - Note some idiosyncrasies in the behaviour:
      
            send                   |    receives
          -------------------------+-------------------------
              string("a b c")      |    string "a b c"
              string("a")          |    string "a"
              "a b c"              |    word   "abc"
              'd'                  |    char   'd'
              "d"                  |    char   'd'
              "d   "               |    char   'd'
      5d29b498
  6. 08 Nov, 2015 1 commit
  7. 01 Nov, 2015 1 commit
  8. 30 Jun, 2015 1 commit
  9. 31 Dec, 2014 2 commits
    • Henry's avatar
      Updated headers · ded2f257
      Henry authored
      ded2f257
    • Henry's avatar
      Added and verified support for 64bit labels · 325b003b
      Henry authored
      To compile with 64bit labels set
      
      WM_LABEL_SIZE=64
      
      in ~/OpenFOAM/dev/prefs.sh
      
      source ~/.bashrc
      
      then Allwmake in OpenFOAM-dev.
      
      This will build into for example OpenFOAM-dev/platforms/linux64ClangDPInt64Opt
      
      If WM_LABEL_SIZE is unset or set to 32:
      
      WM_LABEL_SIZE=32
      
      the build would be placed into OpenFOAM-dev/platforms/linux64ClangDPInt32Opt
      
      Thus both 32bit and 64bit label builds can coexist without problem.
      325b003b
  10. 05 Mar, 2013 1 commit
  11. 04 Feb, 2013 1 commit
  12. 15 May, 2012 1 commit
  13. 14 Aug, 2011 1 commit
  14. 19 Jan, 2011 1 commit
  15. 14 Jan, 2011 1 commit
  16. 07 Jan, 2011 1 commit
  17. 05 Jan, 2011 2 commits
  18. 22 Nov, 2010 1 commit
  19. 28 Jul, 2010 1 commit
  20. 30 Mar, 2010 1 commit
  21. 29 Mar, 2010 1 commit
  22. 27 Oct, 2009 1 commit
  23. 26 Oct, 2009 1 commit
  24. 02 Oct, 2009 1 commit
  25. 19 Jan, 2009 1 commit
    • Mark Olesen's avatar
      Support for single-quoted strings · 9087cd7b
      Mark Olesen authored
      - token class handles both single and double quoted strings. Single quoted
        strings are used to tag regular expressions. At the moment this is just
        syntactical sugar and isn't (yet) treated differently than double-quoted
        strings.
      
      - write output for std:string, with/without single quotes with the method
        writeQuoted(). Use distinct method name to avoid inadvertent compiler
        conversions.
      
      - write wordRe and keyType using writeQuoted()
      9087cd7b
  26. 10 Jan, 2009 1 commit
    • Mark Olesen's avatar
      Simplify checking of container (List/HashTable, strings) sizes · 95dcb6de
      Mark Olesen authored
      - can use 'XX.empty()' instead of 'XX.size() == 0', 'XX.size() < 1' or
        'XX.size() <= 0' or for simpler coding.
        It also has the same number of characters as '!XX.size()' and /might/ be
        more readable
      
      - many size checking had 'XX.size() > 0', 'XX.size() != 0', or 'XX.size() >= 1'
        when a simple 'XX.size()' suffices
      95dcb6de
  27. 03 Jan, 2009 1 commit
    • Mark Olesen's avatar
      reworked IOstreams · 1d866d7f
      Mark Olesen authored
      - Istream and Ostream now retain backslashes when reading/writing strings.
        The previous implementation simply discarded them, except when used to
        escape a double-quote or a newline. It is now vitally important to retain
        them, eg for quoting regular expression meta-characters.
      
        The backslash continues to be used as an escape character for double-quote
        and newline, but otherwise get passed through "as-is" without any other
        special meaning (ie, they are *NOT* C-style strings). This helps avoid
        'backslash hell'!
        For example,
           string:   "match real dots \.+, question mark \? or any char .*"
           C-style:  "match real dots \\.+, question mark \\? or any char .*"
      
      - combined subfiles in db/IOstreams, some had more copyright info than code
      - OPstreamI.H contained only private methods, moved into OPstream.C
      
      Are these really correct?
         IOstreams/Istream.H:#   include "HashTable.C"
         token/token.H:#define NoHashTableC
      1d866d7f
  28. 31 Dec, 2008 1 commit
  29. 25 Jun, 2008 2 commits
  30. 15 Apr, 2008 1 commit