Skip to content

Commit 9152188

Browse files
committed
Misc. typos
Found via `codespell -q 3` in downstream https://github.com/BlueBrain/Brayns
1 parent 4956227 commit 9152188

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ IF(UNIX OR CYGWIN)
128128
ELSEIF(WIN32)
129129
SET(_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/cmake")
130130
ENDIF()
131-
SET(CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" CACHE PATH "The directory cmake fiels are installed in")
131+
SET(CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" CACHE PATH "The directory cmake files are installed in")
132132

133133
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
134134

doc/Doxyfile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ HTML_STYLESHEET =
11261126
# defined cascading style sheet that is included after the standard style sheets
11271127
# created by doxygen. Using this option one can overrule certain style aspects.
11281128
# This is preferred over using HTML_STYLESHEET since it does not replace the
1129-
# standard style sheet and is therefor more robust against future updates.
1129+
# standard style sheet and is therefore more robust against future updates.
11301130
# Doxygen will copy the style sheet file to the output directory. For an example
11311131
# see the documentation.
11321132
# This tag requires that the tag GENERATE_HTML is set to YES.

doc/Doxyfile.zh-cn.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ HTML_STYLESHEET =
11261126
# defined cascading style sheet that is included after the standard style sheets
11271127
# created by doxygen. Using this option one can overrule certain style aspects.
11281128
# This is preferred over using HTML_STYLESHEET since it does not replace the
1129-
# standard style sheet and is therefor more robust against future updates.
1129+
# standard style sheet and is therefore more robust against future updates.
11301130
# Doxygen will copy the style sheet file to the output directory. For an example
11311131
# see the documentation.
11321132
# This tag requires that the tag GENERATE_HTML is set to YES.

doc/faq.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Alternatively, if we don't want to explicitly refer to the root value of `addres
236236

237237
4. What is BOM? How RapidJSON handle it?
238238

239-
[Byte order mark (BOM)](http://en.wikipedia.org/wiki/Byte_order_mark) sometimes reside at the beginning of file/stream to indiciate the UTF encoding type of it.
239+
[Byte order mark (BOM)](http://en.wikipedia.org/wiki/Byte_order_mark) sometimes reside at the beginning of file/stream to indicate the UTF encoding type of it.
240240

241241
RapidJSON's `EncodedInputStream` can detect/consume BOM. `EncodedOutputStream` can optionally write a BOM. See [Encoded Streams](doc/stream.md) for example.
242242

doc/internals.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Both SAX and DOM APIs depends on 3 additional concepts: `Allocator`, `Encoding`
2828

2929
## Data Layout {#DataLayout}
3030

31-
`Value` is a [variant type](http://en.wikipedia.org/wiki/Variant_type). In RapidJSON's context, an instance of `Value` can contain 1 of 6 JSON value types. This is possible by using `union`. Each `Value` contains two members: `union Data data_` and a`unsigned flags_`. The `flags_` indiciates the JSON type, and also additional information.
31+
`Value` is a [variant type](http://en.wikipedia.org/wiki/Variant_type). In RapidJSON's context, an instance of `Value` can contain 1 of 6 JSON value types. This is possible by using `union`. Each `Value` contains two members: `union Data data_` and a`unsigned flags_`. The `flags_` indicates the JSON type, and also additional information.
3232

3333
The following tables show the data layout of each type. The 32-bit/64-bit columns indicates the size of the field in bytes.
3434

@@ -101,7 +101,7 @@ The following tables show the data layout of each type. The 32-bit/64-bit column
101101

102102
Here are some notes:
103103
* To reduce memory consumption for 64-bit architecture, `SizeType` is typedef as `unsigned` instead of `size_t`.
104-
* Zero padding for 32-bit number may be placed after or before the actual type, according to the endianess. This makes possible for interpreting a 32-bit integer as a 64-bit integer, without any conversion.
104+
* Zero padding for 32-bit number may be placed after or before the actual type, according to the endianness. This makes possible for interpreting a 32-bit integer as a 64-bit integer, without any conversion.
105105
* An `Int` is always an `Int64`, but the converse is not always true.
106106

107107
## Flags {#Flags}

example/archiver/archiver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class JsonReader {
9797
// PIMPL
9898
void* mDocument; ///< DOM result of parsing.
9999
void* mStack; ///< Stack for iterating the DOM
100-
bool mError; ///< Whether an error is occured.
100+
bool mError; ///< Whether an error has occurred.
101101
};
102102

103103
class JsonWriter {

example/jsonx/jsonx.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// JSON to JSONx conversion exmaple, using SAX API.
1+
// JSON to JSONx conversion example, using SAX API.
22
// JSONx is an IBM standard format to represent JSON as XML.
33
// https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html
44
// This example parses JSON text from stdin with validation,

example/parsebyparts/parsebyparts.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int main() {
143143
AsyncDocumentParser<> parser(d);
144144

145145
const char json1[] = " { \"hello\" : \"world\", \"t\" : tr";
146-
//const char json1[] = " { \"hello\" : \"world\", \"t\" : trX"; // Fot test parsing error
146+
//const char json1[] = " { \"hello\" : \"world\", \"t\" : trX"; // For test parsing error
147147
const char json2[] = "ue, \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.14";
148148
const char json3[] = "16, \"a\":[1, 2, 3, 4] } ";
149149

include/rapidjson/document.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ class GenericDocument : public GenericValue<Encoding, Allocator> {
23622362
//!@name Handling parse errors
23632363
//!@{
23642364

2365-
//! Whether a parse error has occured in the last parsing.
2365+
//! Whether a parse error has occurred in the last parsing.
23662366
bool HasParseError() const { return parseResult_.IsError(); }
23672367

23682368
//! Get the \ref ParseErrorCode of last parsing.

include/rapidjson/prettywriter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum PrettyFormatOptions {
3939

4040
//! Writer with indentation and spacing.
4141
/*!
42-
\tparam OutputStream Type of ouptut os.
42+
\tparam OutputStream Type of output os.
4343
\tparam SourceEncoding Encoding of source string.
4444
\tparam TargetEncoding Encoding of output stream.
4545
\tparam StackAllocator Type of allocator for allocating memory of stack.

include/rapidjson/rapidjson.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
2727
Some RapidJSON features are configurable to adapt the library to a wide
2828
variety of platforms, environments and usage scenarios. Most of the
29-
features can be configured in terms of overriden or predefined
29+
features can be configured in terms of overridden or predefined
3030
preprocessor macros at compile-time.
3131
3232
Some additional customization is available in the \ref RAPIDJSON_ERRORS APIs.
@@ -219,7 +219,7 @@
219219
# elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
220220
# define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN
221221
# else
222-
# error Unknown machine endianess detected. User needs to define RAPIDJSON_ENDIAN.
222+
# error Unknown machine endianness detected. User needs to define RAPIDJSON_ENDIAN.
223223
# endif // __BYTE_ORDER__
224224
// Detect with GLIBC's endian.h
225225
# elif defined(__GLIBC__)
@@ -229,7 +229,7 @@
229229
# elif (__BYTE_ORDER == __BIG_ENDIAN)
230230
# define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN
231231
# else
232-
# error Unknown machine endianess detected. User needs to define RAPIDJSON_ENDIAN.
232+
# error Unknown machine endianness detected. User needs to define RAPIDJSON_ENDIAN.
233233
# endif // __GLIBC__
234234
// Detect with _LITTLE_ENDIAN and _BIG_ENDIAN macro
235235
# elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
@@ -246,7 +246,7 @@
246246
# elif defined(RAPIDJSON_DOXYGEN_RUNNING)
247247
# define RAPIDJSON_ENDIAN
248248
# else
249-
# error Unknown machine endianess detected. User needs to define RAPIDJSON_ENDIAN.
249+
# error Unknown machine endianness detected. User needs to define RAPIDJSON_ENDIAN.
250250
# endif
251251
#endif // RAPIDJSON_ENDIAN
252252

include/rapidjson/reader.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ class GenericReader {
678678
return IsIterativeParsingCompleteState(state_);
679679
}
680680

681-
//! Whether a parse error has occured in the last parsing.
681+
//! Whether a parse error has occurred in the last parsing.
682682
bool HasParseError() const { return parseResult_.IsError(); }
683683

684684
//! Get the \ref ParseErrorCode of last parsing.
@@ -901,7 +901,7 @@ class GenericReader {
901901
return false;
902902
}
903903

904-
// Helper function to parse four hexidecimal digits in \uXXXX in ParseString().
904+
// Helper function to parse four hexadecimal digits in \uXXXX in ParseString().
905905
template<typename InputStream>
906906
unsigned ParseHex4(InputStream& is, size_t escapeOffset) {
907907
unsigned codepoint = 0;
@@ -1008,7 +1008,7 @@ class GenericReader {
10081008

10091009
Ch c = is.Peek();
10101010
if (RAPIDJSON_UNLIKELY(c == '\\')) { // Escape
1011-
size_t escapeOffset = is.Tell(); // For invalid escaping, report the inital '\\' as error offset
1011+
size_t escapeOffset = is.Tell(); // For invalid escaping, report the initial '\\' as error offset
10121012
is.Take();
10131013
Ch e = is.Peek();
10141014
if ((sizeof(Ch) == 1 || unsigned(e) < 256) && RAPIDJSON_LIKELY(escape[static_cast<unsigned char>(e)])) {

rapidjson.autopkg

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Changed
4848

4949
dependencies {
5050
packages : {
51-
//TODO: Add dependecies here in [pkg.name]/[version] form per newline
51+
//TODO: Add dependencies here in [pkg.name]/[version] form per newline
5252
//zlib/[1.2.8],
5353
};
5454
}

test/perftest/misctest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ bool Writer1<rapidjson::StringBuffer>::WriteUint(unsigned u) {
432432
return true;
433433
}
434434

435-
// Using digits LUT to reduce divsion/modulo
435+
// Using digits LUT to reduce division/modulo
436436
template<typename OutputStream>
437437
class Writer2 {
438438
public:
@@ -616,7 +616,7 @@ inline bool Writer3<rapidjson::InsituStringStream>::WriteUint64(uint64_t u) {
616616
return true;
617617
}
618618

619-
// Using digits LUT to reduce divsion/modulo, two passes
619+
// Using digits LUT to reduce division/modulo, two passes
620620
template<typename OutputStream>
621621
class Writer4 {
622622
public:

0 commit comments

Comments
 (0)