Skip to content

Commit

Permalink
Typos found by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored and malaterre committed Sep 9, 2021
1 parent 9264d3c commit 54762d7
Show file tree
Hide file tree
Showing 138 changed files with 234 additions and 234 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GDCM 2.x:
Joel Spaltenstein : Developer (Mac OS X)


GDCM 1.x (Developpers and contributors, alphabetical order)
GDCM 1.x (Developers and contributors, alphabetical order)
--------
Aris Basic
Fabrice Bellet
Expand Down
10 changes: 5 additions & 5 deletions Applications/Cxx/gdcmconv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
=========================================================================*/
/*
* HISTORY:
* In GDCM 1.X the prefered terms was 'ReWrite', however one author of GDCM dislike
* In GDCM 1.X the preferred term was 'ReWrite', however one author of GDCM dislike
* the term ReWrite since it is associated with the highly associated with the Rewrite
* notion in software programming where using reinvent the wheel and rewrite from scratch code
* the term convert was prefered
* the term convert was preferred
*
* Tools to conv. Goals being to 'purify' a DICOM file.
* For now it will do the minimum:
Expand All @@ -25,7 +25,7 @@
* simply discarded (not written).
* - Elements are written in alphabetical order
* - 32bits VR have the residue bytes sets to 0x0,0x0
* - Same goes from Item Length end delimitor, sets to 0x0,0x0
* - Same goes from Item Length end delimiter, sets to 0x0,0x0
* - All buggy files (wrong length: GE, 13 and Siemens Leonardo) are fixed
* - All size are even (no odd length from gdcm 1.x)
*
Expand All @@ -44,7 +44,7 @@
* - Any broken JPEG file (wrong bits) should be fixed
* - DicomObject bug should be fixed
* - Meta and Dataset should have a matching UID (more generally File Meta
* should be correct (Explicit!) and consistant with DataSet)
* should be correct (Explicit!) and consistent with DataSet)
* - User should be able to specify he wants Group Length (or remove them)
* - Media SOP should be correct (deduct from something else or set to
* SOP Secondary if all else fail).
Expand Down Expand Up @@ -153,7 +153,7 @@ static void PrintHelp()
std::cout << " -F --force Force decompression/merging before recompression/splitting." << std::endl;
std::cout << " --generate-icon Generate icon." << std::endl;
std::cout << " --icon-minmax %d,%d Min/Max value for icon." << std::endl;
std::cout << " --icon-auto-minmax Automatically commpute best Min/Max values for icon." << std::endl;
std::cout << " --icon-auto-minmax Automatically compute best Min/Max values for icon." << std::endl;
std::cout << " --compress-icon Decide whether icon follows main TransferSyntax or remains uncompressed." << std::endl;
std::cout << " --planar-configuration [01] Change planar configuration." << std::endl;
std::cout << " -Y --lossy Use the lossy (if possible) compressor." << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions Applications/Cxx/gdcmdictdump.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
* TODO: Is this really usefull ?
* Dump the dict from a DICOM file. Usefull for the private dict
* TODO: Is this really useful ?
* Dump the dict from a DICOM file. Useful for the private dict
*/
4 changes: 2 additions & 2 deletions Applications/Cxx/gdcmdump.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* - dcmInfo (SIEMENS)
* - PrintFile (GDCM 1.x)
*
* For now all layout are harcoded (see --color/--xml-dict for instance)
* For now all layout are hardcoded (see --color/--xml-dict for instance)
*
* gdcmdump has some feature not described in the DICOM standard:
* --csa : to print CSA information (dcmInfo.exe compatible)
Expand Down Expand Up @@ -190,7 +190,7 @@ static void ProcessSDSDataString( std::istream & is )

static void ProcessSDSData( std::istream & is )
{
// havent been able to figure out what was the begin meant for
// haven't been able to figure out what was the begin meant for
is.seekg( 0x20 - 8 );
uint32_t version = 0;
assert( sizeof(uint32_t) == 4 );
Expand Down
2 changes: 1 addition & 1 deletion Applications/Cxx/gdcmpap3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static bool DecompressPapyrus3( int pap3handle, int itemnum, gdcm::TransferSynta

gdcm::DataSet & nested = file.GetDataSet();

/* position the file pointer to the begining of the data set */
/* position the file pointer to the beginning of the data set */
PapyShort err = Papy3GotoNumber (fileNb, (PapyShort)imageNb, DataSetID);

gdcm::DataElement pixeldata( gdcm::Tag(0x7fe0,0x0010) );
Expand Down
2 changes: 1 addition & 1 deletion Applications/Cxx/puff.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* - Use pointers instead of long to specify source and
* destination sizes to avoid arbitrary 4 GB limits
* 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!),
* but leave simple version for readabilty
* but leave simple version for readability
* - Make sure invalid distances detected if pointers
* are 16 bits
* - Fix fixed codes table error
Expand Down
2 changes: 1 addition & 1 deletion CMake/FindJavaProperties.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
get_filename_component(current_list_path ${CMAKE_CURRENT_LIST_FILE} PATH)
find_package(Java 1.5 REQUIRED)

# need to re-run everytime the setting for Java has changed:
# need to re-run every time the setting for Java has changed:
# There is technically one caveat still, when one only modify
# Java_JAVA_EXECUTABLE from cmake-gui, everything is re-run properly except the
# FIND_PATH for jar and javac
Expand Down
2 changes: 1 addition & 1 deletion CMake/FindMd5sum.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif ()
macro(COMPUTE_MD5SUMS DIRECTORY OUTPUT_FILE)

# Super ugly and barely readable but you need that in order to
# work around a deficiency in EXECUTE_PROCESS which does not have dependencie scanning
# work around a deficiency in EXECUTE_PROCESS which does not have dependencies scanning
file(WRITE
${CMAKE_BINARY_DIR}/md5sum.cmake
"
Expand Down
2 changes: 1 addition & 1 deletion CMake/FindOpenSSL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if(WIN32 AND NOT CYGWIN)
# * MTd for static-debug

# Implementation details:
# We are using the libraries located in the VC subdir instead of the parent directory eventhough :
# We are using the libraries located in the VC subdir instead of the parent directory even though :
# libeay32MD.lib is identical to ../libeay32.lib, and
# ssleay32MD.lib is identical to ../ssleay32.lib
find_library(LIB_EAY_DEBUG NAMES libeay32MDd libeay32
Expand Down
2 changes: 1 addition & 1 deletion CMake/UseCSharpTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# set(ENV{PYTHONPATH} ${LIBRARY_OUTPUT_PATH})
# set(my_test "from test_mymodule import *\;test_mymodule()")
# add_test(PYTHON-TEST-MYMODULE python -c ${my_test})
# Since cmake is only transmitting the ADD_TEST line to ctest thus you are loosing
# Since cmake is only transmitting the ADD_TEST line to ctest thus you are losing
# the env var. The only way to store the env var is to physically write in the cmake script
# whatever PYTHONPATH you want and then add the test as 'cmake -P python_test.cmake'
#
Expand Down
2 changes: 1 addition & 1 deletion CMake/UsePythonTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# set(ENV{PYTHONPATH} ${LIBRARY_OUTPUT_PATH})
# set(my_test "from test_mymodule import *\;test_mymodule()")
# add_test(PYTHON-TEST-MYMODULE python -c ${my_test})
# Since cmake is only transmitting the ADD_TEST line to ctest thus you are loosing
# Since cmake is only transmitting the ADD_TEST line to ctest thus you are losing
# the env var. The only way to store the env var is to physically write in the cmake script
# whatever PYTHONPATH you want and then add the test as 'cmake -P python_test.cmake'
#
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ if(GDCM_STANDALONE) # disabled for ITK distribution of gdcm
set(CPACK_NUGET_PACKAGE_DESCRIPTION "Grassroots DiCoM is a C++ library for DICOM medical files. It is accessible from Python, C#, Java and PHP. It supports RAW, JPEG, JPEG 2000, JPEG-LS, RLE and deflated transfer syntax.
It comes with a super fast scanner implementation to quickly scan hundreds of DICOM files.
It supports SCU network operations (C-ECHO, C-FIND, C-STORE, C-MOVE). PS 3.3 & 3.6 are distributed as XML files.
It also provides PS 3.15 certificates and password based mecanism to anonymize and de-identify DICOM datasets.")
It also provides PS 3.15 certificates and password based mechanism to anonymize and de-identify DICOM datasets.")
set(CPACK_NUGET_PACKAGE_LICENSEURL "http://gdcm.sourceforge.net/Copyright.html")
set(CPACK_NUGET_PACKAGE_HOMEPAGE_URL "http://gdcm.sourceforge.net")
set(CPACK_NUGET_PACKAGE_TAGS "dicom" "medical")
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmByteSwap.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace gdcm

/**
* \brief ByteSwap
* \details Perform machine dependent byte swaping (Little Endian,
* \details Perform machine dependent byte swapping (Little Endian,
* Big Endian, Bad Little Endian, Bad Big Endian).
* TODO: bswap_32 / bswap_64 ...
*/
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmConfigure.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/* Hard code the path to the public dictionary */
#define PUB_DICT_PATH "@GDCM_PUB_DICT_PATH@"

/* Usefull in particular for loadshared where the full path
/* Useful in particular for loadshared where the full path
* to the lib is needed */
#define GDCM_SOURCE_DIR "@GDCM_SOURCE_DIR@"
#define GDCM_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmCryptoFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace gdcm

/**
* \brief Class to do handle the crypto factory
* \details GDCM needs to access in a platform independant way
* \details GDCM needs to access in a platform independent way
* the user specified crypto engine. It can be:
* \li CAPI (windows only)
* \li OPENSSL (portable)
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmDirectory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ unsigned int Directory::Explore(FilenameType const &name, bool recursive)
}

// According to POSIX, the dirent structure contains a field char d_name[]
// of unspecified size, with at most NAME_MAX characters preceeding the
// of unspecified size, with at most NAME_MAX characters preceding the
// terminating null character. Use of other fields will harm the porta-
// bility of your programs.

Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmDirectory.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace gdcm
* \brief Class for manipulation directories
*
* \note This implementation provide a cross platform implementation
* for manipulating directores: basically traversing directories
* for manipulating directories: basically traversing directories
* and harvesting files
*
* \note
Expand Down
6 changes: 3 additions & 3 deletions Source/Common/gdcmFilename.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace gdcm
{
/**
* \brief Class to manipulate file name's
* \note OS independant representation of a filename (to query path, name and extension from a filename)
* \note OS independent representation of a filename (to query path, name and extension from a filename)
*/
class GDCM_EXPORT Filename
{
Expand Down Expand Up @@ -55,9 +55,9 @@ class GDCM_EXPORT Filename
operator const char * () const { return GetFileName(); }

// FIXME: I don't like this function
// It hides the realpath call (maybe usefull)
// It hides the realpath call (maybe useful)
// and it forces file to exist on the disk whereas Filename
// should be independant from file existence.
// should be independent from file existence.
bool IsIdentical(Filename const &fn) const;

/// Does the filename ends with a particular string ?
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmFilenameGenerator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool FilenameGenerator::Generate()
if ( num_percent != 1 )
{
// Bug: what if someone wants to output file such as %%%02 ... oh well
gdcmDebugMacro( "No more than one % in string formating please" );
gdcmDebugMacro( "No more than one % in string formatting please" );
return false;
}
bool success = true;
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace gdcm
{
// Don't ask why, but this is EXTREMELY important on Win32
// Apparently the compiler is doing something special the first time it compiles
// this instanciation unit
// this instantiation unit
// If this fake file is not present I get an unresolved symbol for each function
// of the gdcm::Object class

Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmOpenSSLCryptographicMessageSyntax.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ bool OpenSSLCryptographicMessageSyntax::Encrypt(char *output, size_t &outlen, co
cms = CMS_encrypt(recips, in, internalCipherType, flags);
if (!cms)
{
gdcmErrorMacro( "Error at creating the CMS strucutre." );
gdcmErrorMacro( "Error at creating the CMS structure." );
goto err;
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public :
/// compute the area
virtual size_t Area() const = 0;

// implementation detail of heterogenous container in C++
// implementation detail of heterogeneous container in C++
virtual Region *Clone() const = 0;

/// Return the Axis-Aligned minimum bounding box for all regions
Expand Down
4 changes: 2 additions & 2 deletions Source/Common/gdcmString.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace gdcm
* \brief String
*
* \note TDelimiter template parameter is used to separate multiple String (VM1 >)
* TMaxLength is only a hint. Noone actually respect the max length
* TMaxLength is only a hint. No one actually respect the max length
* TPadChar is the string padding (0 or space)
*/
template <char TDelimiter = '\\', unsigned int TMaxLength = 64, char TPadChar = ' '>
Expand Down Expand Up @@ -57,7 +57,7 @@ class /*GDCM_EXPORT*/ String : public std::string /* PLEASE do not export me */
}
String(const value_type* s, size_type n): std::string(s, n)
{
// We are being passed a const char* pointer, so s[n] == 0 (garanteed!)
// We are being passed a const char* pointer, so s[n] == 0 (guaranteed!)
if( n % 2 )
{
push_back( TPadChar );
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/gdcmSubject.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GDCM_EXPORT Subject : public Object
unsigned long AddObserver(const Event & event, Command *) const;

/** Get the command associated with the given tag. NOTE: This returns
* a pointer to a Command, but it is safe to asign this to a
* a pointer to a Command, but it is safe to assign this to a
* Command::Pointer. Since Command inherits from LightObject, at this
* point in the code, only a pointer or a reference to the Command can
* be used. */
Expand Down
4 changes: 2 additions & 2 deletions Source/Common/gdcmSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GDCM_EXPORT System
public:
/// Create a directory name path
static bool MakeDirectory(const char *path);
/// Check whether the specified file exist on the sytem
/// Check whether the specified file exist on the system
static bool FileExists(const char* filename);
/// Check whether the file specified is a directory:
static bool FileIsDirectory(const char* name);
Expand Down Expand Up @@ -73,7 +73,7 @@ class GDCM_EXPORT System
// Chdir
// copy a file

/// Retrieve the hostname, only the first 255 byte are copyied.
/// Retrieve the hostname, only the first 255 byte are copied.
/// This may come handy to specify the Station Name
static bool GetHostName(char hostname[255]);

Expand Down
6 changes: 3 additions & 3 deletions Source/Common/zipstreamimpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ std::streamsize basic_zip_streambuf<charT, traits>::flush()
{
written_byte_size = static_cast<std::streamsize>(_output_buffer.size()) - _zip_stream.avail_out;
total_written_byte_size += written_byte_size;
// ouput buffer is full, dumping to ostream
// output buffer is full, dumping to ostream
_ostream.write( (const char_type*) &(_output_buffer[0]),
static_cast<std::streamsize>(written_byte_size/sizeof(char_type)*sizeof(char)));

Expand Down Expand Up @@ -263,7 +263,7 @@ bool basic_zip_streambuf<charT, traits>::zip_to_stream(
written_byte_size= static_cast<std::streamsize>(_output_buffer.size()) -
_zip_stream.avail_out;
total_written_byte_size += written_byte_size;
// ouput buffer is full, dumping to ostream
// output buffer is full, dumping to ostream

_ostream.write((const char_type*) &_output_buffer[0],
static_cast<std::streamsize>(written_byte_size / sizeof(char_type)));
Expand Down Expand Up @@ -711,7 +711,7 @@ basic_zip_istream<charT, traits>::is_gzip() const
* This must be called after the reading of compressed data is finished! This
* method compares it to the crc of the uncompressed data.
*
* \return true if crc check is succesful
* \return true if crc check is successful
*/
template <class charT, class traits> inline
bool
Expand Down
14 changes: 7 additions & 7 deletions Source/DataStructureAndEncodingDefinition/gdcmAttribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ template<> class VRVLSize<1> {
/**
* \brief Attribute class
* This class use template metaprograming tricks to let the user know when the template
* instanciation does not match the public dictionary.
* instantiation does not match the public dictionary.
*
* Typical example that compile is:
* Attribute<0x0008,0x9007> a = {"ORIGINAL","PRIMARY","T1","NONE"};
Expand Down Expand Up @@ -118,7 +118,7 @@ class Attribute
os << GetTag() << " ";
os << TagToType<Group,Element>::GetVRString() << " ";
os << TagToType<Group,Element>::GetVMString() << " ";
os << Internal[0]; // VM is at least garantee to be one
os << Internal[0]; // VM is at least guarantee to be one
for(unsigned int i=1; i<GetNumberOfValues(); ++i)
os << "," << Internal[i];
}
Expand Down Expand Up @@ -353,7 +353,7 @@ class Attribute<Group,Element,TVR,VM::VM1>
os << GetTag() << " ";
os << TagToType<Group,Element>::GetVRString() << " ";
os << TagToType<Group,Element>::GetVMString() << " ";
os << Internal; // VM is at least garantee to be one
os << Internal; // VM is at least guarantee to be one
}
// copy:
//ArrayType GetValue(unsigned int idx = 0) {
Expand Down Expand Up @@ -593,7 +593,7 @@ class Attribute<Group,Element,TVR,VM::VM1_n>
os << GetTag() << " ";
os << GetVR() << " ";
os << GetVM() << " ";
os << Internal[0]; // VM is at least garantee to be one
os << Internal[0]; // VM is at least guarantee to be one
for(unsigned int i=1; i<GetNumberOfValues(); ++i)
os << "," << Internal[i];
}
Expand Down Expand Up @@ -763,7 +763,7 @@ class Attribute<Group,Element,TVR,VM::VM3_3n> : public Attribute<Group,Element,T


// For particular case for ASCII string
// WARNING: This template explicitly instanciates a particular
// WARNING: This template explicitly instantiates a particular
// EncodingImplementation THEREFORE it is required to be declared after the
// EncodingImplementation is needs (doh!)
#if 0
Expand Down Expand Up @@ -795,7 +795,7 @@ class Attribute<TVM>
}
// Implementation of Print is common to all Mode (ASCII/Binary)
void Print(std::ostream &_os) const {
_os << Internal[0]; // VM is at least garantee to be one
_os << Internal[0]; // VM is at least guarantee to be one
for(int i=1; i<VMToLength<TVM>::Length; ++i)
_os << "," << Internal[i];
}
Expand Down Expand Up @@ -869,7 +869,7 @@ class Attribute<TVR, VM::VM1_n>
void Print(std::ostream &_os) const {
assert( Length );
assert( Internal );
_os << Internal[0]; // VM is at least garantee to be one
_os << Internal[0]; // VM is at least guarantee to be one
const unsigned long length = GetLength() < 25 ? GetLength() : 25;
for(unsigned long i=1; i<length; ++i)
_os << "," << Internal[i];
Expand Down
2 changes: 1 addition & 1 deletion Source/DataStructureAndEncodingDefinition/gdcmByteBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace gdcm
/**
* \brief ByteBuffer
*
* \details Detailled description here
* \details Detailed description here
* \note
* looks like a std::streambuf or std::filebuf class with the get and
* peek pointer
Expand Down
Loading

0 comments on commit 54762d7

Please sign in to comment.