/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2011 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more information. ============================================================================*/ #include "cmNewLineStyle.h" cmNewLineStyle::cmNewLineStyle() : NewLineStyle(Invalid) { } bool cmNewLineStyle::IsValid() const { return NewLineStyle != Invalid; } bool cmNewLineStyle::ReadFromArguments(const std::vector& args, std::string& errorString) { NewLineStyle = Invalid; for (size_t i = 0; i< args.size(); i++) { if (args[i] == "NEWLINE_STYLE") { size_t const styleIndex = i + 1; if (args.size() > styleIndex) { const std::string eol = args[styleIndex]; if (eol == "LF" || eol == "UNIX") { NewLineStyle = LF; return true; } else if (eol == "CRLF" || eol == "WIN32" || eol == "DOS") { NewLineStyle = CRLF; return true; } else { errorString = "NEWLINE_STYLE sets an unknown style, only LF, " "CRLF, UNIX, DOS, and WIN32 are supported"; return false; } } else { errorString = "NEWLINE_STYLE must set a style: " "LF, CRLF, UNIX, DOS, or WIN32"; return false; } } } return true; } const std::string cmNewLineStyle::GetCharacters() const { switch (NewLineStyle) { case Invalid: return ""; case LF: return "\n"; case CRLF: return "\r\n"; default: ; } return ""; } void cmNewLineStyle::SetStyle(Style style) { NewLineStyle = style; } cmNewLineStyle::Style cmNewLineStyle::GetStyle() const { return NewLineStyle; } '>feature/vfd_swmr_beta_2 Mirror from: https://github.com/HDFGroup/hdf5.git
summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r13323] Fixed unused parameter warnings in H5C.cJohn Mainzer2007-02-161-2/+24
|
* [svn-r13304] Description:Quincey Koziol2007-02-144-39/+74
| | | | | | | | Fix new API routines to use same pattern of arguments for specifying an object as the new H5G/L/O API routines. Tested on: Linux/32 2.6 (chicago)
* [svn-r13295] Description:Quincey Koziol2007-02-142-2/+11
| | | | | | | | | Fix bug in "create intermediate groups" code which was carrying too much information from parent to child group. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13291] Description:Quincey Koziol2007-02-131-9/+8
| | | | | | | | Clean up comments Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13288] Description:Quincey Koziol2007-02-131-1/+2
| | | | | | | | | | | | | Fix core dump for iterating over attributes and not passing in a "starting point". Update output files missed in previous checkin. This change essentially reverses a previous change of attribute ordering, leaving the output of h5dump & h5ls compatible with 1.6.x Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13287] Description:Quincey Koziol2007-02-139-300/+351
| | | | | | | | | | | | | Add H5Aget_info_by_idx & H5Aget_name_by_idx routines, along with refactoring underlying indices code to handle those sort of queries. Simplify the link callback routines a bit. Minor other cleanups. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 6.2 (duty)
* [svn-r13276] Snapshot version 1.8 release 0 (alpha6snap1)HDF Tester2007-02-115-10/+14
|
* [svn-r13274] Description:Quincey Koziol2007-02-091-8/+8
| | | | | | | | | Relax restriction on the "location ID" for attribute operations to allow file IDs to be used as the location ID. If a file ID is used, the attribute operations will occur on the file's root group. Tested on: FreeBSD/32 6.2 (duty)
* [svn-r13272] Description:Quincey Koziol2007-02-086-38/+94
| | | | | | | | Checkpoint attribute creation order coding on "by index" routines. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13270] Description:Quincey Koziol2007-02-082-84/+89
| | | | | | | | | | | Clean up some of the file space allocation formatting. Beef up the attribute creation order tests to make certain they are handling shared atributes correctly (which they apparently are :-) Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.8 (amazon)
* [svn-r13267] Description:Quincey Koziol2007-02-087-90/+88
| | | | | | | | | Add more support for creation order index operations to attributes: get deletions & compact<->dense storage transitions working. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.8 (amazon)
* [svn-r13264] Updated Makefile.am with new THG copyright notice.Albert Cheng2007-02-072-4/+6
| | | | Ran reconfigure to generate the Makefile.in files.
* [svn-r13263] hand edited the copyright notice.Albert Cheng2007-02-071-2/+3
|
* [svn-r13260] Added back a closing comment line.Albert Cheng2007-02-071-0/+1
|
* [svn-r13254] Cleaned up superblock extension code and added some more ↵James Laird2007-02-073-39/+23
| | | | | | helpful comments. Tested on Windows, smirom, and kagiso.
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-07