Skip to content

Commit

Permalink
Fix some typos (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Aug 24, 2022
1 parent d39f43d commit 15f656d
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ option( E57_WRITE_CRAZY_PACKET_MODE "Compile library to enable reader-stressing
#########################################################################################

set( revision_id "${PROJECT_NAME}-${PROJECT_VERSION}-${${PROJECT_NAME}_BUILD_TAG}" )
message( STATUS "[E57] Revison ID: ${revision_id}" )
message( STATUS "[E57] Revision ID: ${revision_id}" )

# Target
if ( E57_BUILD_SHARED )
Expand Down
2 changes: 1 addition & 1 deletion include/E57Exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace e57
E57_ERROR_CHILD_INDEX_OUT_OF_BOUNDS = 3, //!< a numerical index identifying a child was out of bounds
E57_ERROR_SET_TWICE = 4, //!< attempted to set an existing child element to a new value
E57_ERROR_HOMOGENEOUS_VIOLATION = 5, //!< attempted to add an E57 Element that would have made the children
//!< of a homogenous Vector have different types
//!< of a homogeneous Vector have different types
E57_ERROR_VALUE_NOT_REPRESENTABLE = 6, //!< a value could not be represented in the requested type
E57_ERROR_SCALED_VALUE_NOT_REPRESENTABLE = 7, //!< after scaling the result could not be represented in the
//!< requested type
Expand Down
2 changes: 1 addition & 1 deletion src/CompressedVectorNodeImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ namespace e57
{
// don't checkImageFileOpen

/// Since only called for prototype nodes, should't be able to get here since
/// Since only called for prototype nodes, shouldn't be able to get here since
/// CompressedVectors can't be in prototypes
throw E57_EXCEPTION2( E57_ERROR_INTERNAL, "this->pathName=" + this->pathName() );
}
Expand Down
10 changes: 5 additions & 5 deletions src/Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ std::shared_ptr<Decoder> Decoder::DecoderFactory( unsigned bytestreamNumber, //!
unsigned bitsPerRecord = imf->bitsNeeded( ini->minimum(), ini->maximum() );

//!!! need to pick smarter channel buffer sizes, here and elsewhere
/// Constuct Integer decoder with appropriate register size, based on
/// Construct Integer decoder with appropriate register size, based on
/// number of bits stored.
if ( bitsPerRecord == 0 )
{
Expand Down Expand Up @@ -119,7 +119,7 @@ std::shared_ptr<Decoder> Decoder::DecoderFactory( unsigned bytestreamNumber, //!
unsigned bitsPerRecord = imf->bitsNeeded( sini->minimum(), sini->maximum() );

//!!! need to pick smarter channel buffer sizes, here and elsewhere
/// Constuct ScaledInteger dencoder with appropriate register size,
/// Construct ScaledInteger dencoder with appropriate register size,
/// based on number of bits stored.
if ( bitsPerRecord == 0 )
{
Expand Down Expand Up @@ -251,7 +251,7 @@ size_t BitpackDecoder::inputProcess( const char *source, const size_t availableB
/// Now that we have input stored in an aligned buffer, call derived class
/// to try to eat some Note that end of filled buffer may not be at a
/// natural boundary. The subclass may transfer this partial word in a
/// full word transfer, but it must be carefull to only use the defined
/// full word transfer, but it must be careful to only use the defined
/// bits. inBuffer_ is a multiple of largest word size, so this full word
/// transfer off the end will always be in defined memory.

Expand Down Expand Up @@ -512,11 +512,11 @@ size_t BitpackStringDecoder::inputProcessAligned( const char *inbuf, const size_
{
if ( *inbuf & 0x01 )
{
prefixLength_ = 8; // 8 byte prefix, length upto 2^63-1
prefixLength_ = 8; // 8 byte prefix, length up to 2^63-1
}
else
{
prefixLength_ = 1; // 1 byte prefix, length upto 2^7-1
prefixLength_ = 1; // 1 byte prefix, length up to 2^7-1
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/E57Exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace e57
@brief Object thrown by E57 API functions to communicate the conditions of an
error.
@details
The E57Exception object communicates information about errors occuring in calls
The E57Exception object communicates information about errors occurring in calls
to the E57 API functions. The error information is communicated from the
location in the E57 implementation where the error was detected to the @c catch
statement in the code of the API user. The state of E57Exception object has one
Expand Down Expand Up @@ -315,7 +315,7 @@ namespace e57
case E57_ERROR_HOMOGENEOUS_VIOLATION:
return "attempted to add an E57 Element that would have made the "
"children of a "
"homogenous Vector have different types "
"homogeneous Vector have different types "
"(E57_ERROR_HOMOGENEOUS_VIOLATION)";
case E57_ERROR_VALUE_NOT_REPRESENTABLE:
return "a value could not be represented in the requested type "
Expand Down
2 changes: 1 addition & 1 deletion src/E57XmlParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace e57
int64_t length; // used in E57_BLOB
bool allowHeterogeneousChildren; // used in E57_VECTOR
int64_t recordCount; // used in E57_COMPRESSED_VECTOR
ustring childText; // used by all types, accumlates all child text between tags
ustring childText; // used by all types, accumulates all child text between tags

/// Holds node for Structure, Vector, and CompressedVector so can append
/// child elements
Expand Down
4 changes: 2 additions & 2 deletions src/Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ std::shared_ptr<Encoder> Encoder::EncoderFactory( unsigned bytestreamNumber,
unsigned bitsPerRecord = imf->bitsNeeded( ini->minimum(), ini->maximum() );

//!!! need to pick smarter channel buffer sizes, here and elsewhere
/// Constuct Integer encoder with appropriate register size, based on
/// Construct Integer encoder with appropriate register size, based on
/// number of bits stored.
if ( bitsPerRecord == 0 )
{
Expand Down Expand Up @@ -123,7 +123,7 @@ std::shared_ptr<Encoder> Encoder::EncoderFactory( unsigned bytestreamNumber,
unsigned bitsPerRecord = imf->bitsNeeded( sini->minimum(), sini->maximum() );

//!!! need to pick smarter channel buffer sizes, here and elsewhere
/// Constuct ScaledInteger encoder with appropriate register size,
/// Construct ScaledInteger encoder with appropriate register size,
/// based on number of bits stored.
if ( bitsPerRecord == 0 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageFileImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ namespace e57
ImageFileImpl::~ImageFileImpl()
{
/// Try to cancel if not already closed, but don't allow any exceptions to
/// propogate to caller (because in dtor). If writing, this will unlink the
/// propagate to caller (because in dtor). If writing, this will unlink the
/// file, so make sure call ImageFileImpl::close explicitly before dtor runs.
try
{
Expand Down
2 changes: 1 addition & 1 deletion src/NodeImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ bool NodeImpl::isTypeConstrained()
/// Downcast to shared_ptr<VectorNodeImpl>
std::shared_ptr<VectorNodeImpl> ai( std::static_pointer_cast<VectorNodeImpl>( p ) );

/// If homogenous vector and have more than one child, then can't
/// If homogeneous vector and have more than one child, then can't
/// change them
if ( !ai->allowHeteroChildren() && ai->childCount() > 1 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/Packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ char *DataPacket::getBytestream( unsigned bytestreamNumber, unsigned &byteCount
auto bsbLength = reinterpret_cast<uint16_t *>( &payload[0] );
auto streamBase = reinterpret_cast<char *>( &bsbLength[header.bytestreamCount] );

/// Sum size of preceeding stream buffers to get position
/// Sum size of preceding stream buffers to get position
unsigned totalPreceeding = 0;
for ( unsigned i = 0; i < bytestreamNumber; i++ )
{
Expand Down
2 changes: 1 addition & 1 deletion src/SourceDestBufferImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ void SourceDestBufferImpl::setNextInt64( int64_t value, double scale, double off
{
/// don't checkImageFileOpen

/// Apply a scale and offset to numbers from file before puting in user's
/// Apply a scale and offset to numbers from file before putting in user's
/// buffer.

/// Incorporating the scale is optional (requested by user when constructing
Expand Down
2 changes: 1 addition & 1 deletion src/StringNodeImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace e57
break;
}

/// Must output in two pieces, first send upto end of "]]" (don't send
/// Must output in two pieces, first send up to end of "]]" (don't send
/// the following ">").
cf << value_.substr( currentPosition, found - currentPosition + 2 );

Expand Down

0 comments on commit 15f656d

Please sign in to comment.