Skip to content

Commit 2634d18

Browse files
committed
Fix comments
1 parent 0b72948 commit 2634d18

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

mapcodelib/mapcode_alphabets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C" {
2020
#endif
2121

2222
/**
23-
* Mapcodes are suppored in a variety of alphabets, using UTF16. The following
23+
* Mapcodes are supported in a variety of alphabets, using UTF-16. The following
2424
* enum specifies the alphabets (or scripts, as they are also called).
2525
* The 'default' alphabet is Roman, which is always supported. Other
2626
* alphabets may not be supported by every application that accepts

mapcodelib/mapcode_legacy.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ extern "C" {
8080
* Encode a latitude, longitude pair (in degrees) to a set of Mapcodes. Not thread-safe!
8181
*
8282
* Arguments:
83-
* mapcodesAndTerritories - Results set of mapcodes and territories.
83+
* mapcodesAndTerritories - Result set of mapcodes and territories.
8484
* The caller must pass an array of at least 2 * MAX_NR_OF_MAPCODE_RESULTS
85-
* string points, which must NOT be allocated or de-allocated by the caller.
85+
* string pointers, which must NOT be allocated or de-allocated by the caller.
8686
* The resulting strings are statically allocated by the library and will be overwritten
8787
* by the next call to this method!
8888
* lat - Latitude, in degrees. Range: -90..90.
@@ -94,8 +94,8 @@ extern "C" {
9494
* make them represent the coordinate more accurately.
9595
*
9696
* Returns:
97-
* Number of results stored in parameter results. Always >= 0 (0 if no encoding was possible or an error occurred).
98-
* The results are stored as pairs (Mapcode, territory name) in:
97+
* Number of results (N). Always >= 0 (0 if no encoding was possible or an error occurred).
98+
* The results are stored as pairs (Mapcode, territory name) in mapcodesAndTerritories:
9999
* (results[0], results[1])...(results[(2 * N) - 2], results[(2 * N) - 1])
100100
*/
101101
int encodeLatLonToMapcodes_Deprecated( // Warning: this method is deprecated and not thread-safe.
@@ -110,11 +110,11 @@ int encodeLatLonToMapcodes_Deprecated( // Warning: this method is deprecated and
110110
* DEPRECATED OLD VARIANT, NOT THREAD-SAFE:
111111
*
112112
* Convert a territory to a territory name.
113-
* Non-threadsafe routine which uses static storage, overwritten at each call.
113+
* Non-thread-safe routine which uses static storage, overwritten at each call.
114114
*
115115
* Arguments:
116116
* territory - Territory to get the name of.
117-
* userShortName - Pass 0 for full name, 1 for short name (state codes may be ambiguous).
117+
* useShortName - Pass 0 for full name, 1 for short name (state codes may be ambiguous).
118118
*
119119
* Returns:
120120
* Pointer to result. String will be empty if territory illegal.
@@ -148,7 +148,7 @@ char* convertToRoman(char* asciiString, int maxLength, const UWORD* utf16String)
148148
* alphabet - Alphabet to use.
149149
*
150150
* Returns:
151-
* Encoded Unicode string, points at buffer from 'utf16String', allocated/deallocated by caller.
151+
* Encoded Unicode string, points at buffer from 'utf16String', allocated and deallocated by the caller.
152152
*/
153153
UWORD* convertToAlphabet(UWORD* utf16String, int maxLength, const char* asciiString, enum Alphabet alphabet);
154154

0 commit comments

Comments
 (0)