summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorДилян Палаузов <git-dpa@aegee.org>2022-12-08 20:56:04 +0200
committerAllen Winter <allen.winter@kdab.com>2022-12-10 06:06:11 -0500
commit708db8d2aa747b80db29815a57a377ffe34e7868 (patch)
tree966ae512d27327b5f57b2dc43c72483df2401e04
parent1da793fee7a553790fa6fed919dacc4210b98969 (diff)
downloadlibical-git-708db8d2aa747b80db29815a57a377ffe34e7868.tar.gz
Typos a/an
-rw-r--r--.travis.yml2
-rw-r--r--doc/UsingLibical.md2
-rw-r--r--examples/access-usecases.txt2
-rw-r--r--src/java/jlibical_utils_cxx.cpp4
-rw-r--r--src/java/testjni.java4
-rw-r--r--src/libical-glib/api/i-cal-memory.xml4
-rw-r--r--src/libical-glib/api/i-cal-property.xml2
-rw-r--r--src/libical-glib/api/i-cal-recur.xml6
-rw-r--r--src/libical/icalcomponent.h2
-rw-r--r--src/libical/icalmemory.h2
-rw-r--r--src/libical/icalparameter.h4
-rw-r--r--src/libical/icalrecur.c2
-rw-r--r--src/libical/icaltime.h.cmake2
-rw-r--r--src/libical/icaltimezone.c2
-rw-r--r--src/libical/sspm.c2
-rw-r--r--src/libicalss/icalspanlist_cxx.h2
-rw-r--r--src/libicalvcal/README.txt2
-rw-r--r--src/libicalvcal/icalvcal.c4
-rw-r--r--src/test/libical-glib/property.py4
19 files changed, 27 insertions, 27 deletions
diff --git a/.travis.yml b/.travis.yml
index a875b8f4..8efc4bdf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,7 +8,7 @@ matrix:
dist: xenial
- os: osx
env:
- - PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig # needed to find homebrew's libxml2 an libffi on osx
+ - PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig # needed to find homebrew's libxml2 and libffi on osx
- XML_CATALOG_FILES=/usr/local/etc/xml/catalog # homebrew installed libxml2 catalog
- EXTRA_BUILD_FLAGS="-DENABLE_GTK_DOC=false" # Disable Gtk-Doc on OSX
diff --git a/doc/UsingLibical.md b/doc/UsingLibical.md
index 721523f7..ff4237a7 100644
--- a/doc/UsingLibical.md
+++ b/doc/UsingLibical.md
@@ -128,7 +128,7 @@ In libical, components are represented with the `icalcomponent` class.
#### 3.1.3 Values
Values are represented in a similar way to properties; a base class
-and many "derived " classes. A value is essentially a abstract handle
+and many "derived " classes. A value is essentially an abstract handle
on a single fundamental type, a structure or a union.
#### 3.1.4 Parameters
diff --git a/examples/access-usecases.txt b/examples/access-usecases.txt
index af7703ed..ec2cffc5 100644
--- a/examples/access-usecases.txt
+++ b/examples/access-usecases.txt
@@ -18,7 +18,7 @@ Scenarios.
1 Open a connection to a store.
2 Create a new calendar for which user Bob can read and user Alice can
-read an write.
+read and write.
3 Create several new calendars
diff --git a/src/java/jlibical_utils_cxx.cpp b/src/java/jlibical_utils_cxx.cpp
index e52e33f4..b20b5cc4 100644
--- a/src/java/jlibical_utils_cxx.cpp
+++ b/src/java/jlibical_utils_cxx.cpp
@@ -98,8 +98,8 @@ void setCObjectPtr(JNIEnv *env, jobject surrogate, void* subject)
}
//-------------------------------------------------------
-// Return the pointer to the subject (as an VComponent*) from the given surrogate.
-// If the subject is not an VComponent type, or if the subject is NULL, then return NULL.
+// Return the pointer to the subject (as a VComponent*) from the given surrogate.
+// If the subject is not a VComponent type, or if the subject is NULL, then return NULL.
//-------------------------------------------------------
VComponent* getSubjectAsVComponent(JNIEnv *env, jobject surrogateComponent, int exceptionType)
{
diff --git a/src/java/testjni.java b/src/java/testjni.java
index 89ff875b..ccbffc0e 100644
--- a/src/java/testjni.java
+++ b/src/java/testjni.java
@@ -324,7 +324,7 @@ public class testjni
VAlarm valarm = new VAlarm();
System.out.println("created valarm");
- // 1. Create a ICAL_DURATION_PROPERTY using the TimePeriod.
+ // 1. Create an ICAL_DURATION_PROPERTY using the TimePeriod.
ICalDurationType duration = new ICalDurationType();
duration.setDays((long) 0);
duration.setHours((long) 0);
@@ -337,7 +337,7 @@ public class testjni
// AFTER the event or task start or due date, which is useless.
duration.setIs_neg(1);
- // 2. Create a ICalTriggerType object and set the duration on it.
+ // 2. Create an ICalTriggerType object and set the duration on it.
ICalTriggerType trigger = new ICalTriggerType();
trigger.setDuration(duration);
System.out.println("set trigger to duration object");
diff --git a/src/libical-glib/api/i-cal-memory.xml b/src/libical-glib/api/i-cal-memory.xml
index ffb2cac0..4bf241f5 100644
--- a/src/libical-glib/api/i-cal-memory.xml
+++ b/src/libical-glib/api/i-cal-memory.xml
@@ -43,14 +43,14 @@
<parameter type="gchar **" name="pos" annotation="array, element-type gchar, inout" comment="The position at which the new string to be appended"/>
<parameter type="size_t *" name="buf_size" comment="The size of the buffer before appended"/>
<parameter type="const gchar *" name="str" comment="The string to be allocated"/>
- <comment xml:space="preserve">Appends the string to the buffer. Only use them on normally allocated memory, or on buffers created from icalmemory_new_buffer, never with buffers created by icalmemory_tmp_buffer. If icalmemory_append_string has to resize a buffer on the ring, the ring will loose track of it an you will have memory problems.</comment>
+ <comment xml:space="preserve">Appends the string to the buffer. Only use them on normally allocated memory, or on buffers created from icalmemory_new_buffer, never with buffers created by icalmemory_tmp_buffer. If icalmemory_append_string has to resize a buffer on the ring, the ring will loose track of it and you will have memory problems.</comment>
</method>
<method name="i_cal_memory_append_char" corresponds="icalmemory_append_char" since="1.0">
<parameter type="gchar **" name="buf" annotation="array length=buf_size, element-type gchar, inout" comment="The buffer to be appended. It should not be the memory in ical."/>
<parameter type="gchar **" name="pos" annotation="array, element-type gchar, inout" comment="The position at which the new string to be appended"/>
<parameter type="size_t *" name="buf_size" comment="The size of the buffer before appended"/>
<parameter type="gchar" name="ch" comment="The character to be allocated"/>
- <comment xml:space="preserve">Append the character to the buffer. Only use them on normally allocated memory, or on buffers created from icalmemory_new_buffer, never with buffers created by icalmemory_tmp_buffer. If icalmemory_append_string has to resize a buffer on the ring, the ring will loose track of it an you will have memory problems.</comment>
+ <comment xml:space="preserve">Append the character to the buffer. Only use them on normally allocated memory, or on buffers created from icalmemory_new_buffer, never with buffers created by icalmemory_tmp_buffer. If icalmemory_append_string has to resize a buffer on the ring, the ring will loose track of it and you will have memory problems.</comment>
</method>
<method name="i_cal_memory_strdup" corresponds="icalmemory_strdup" since="1.0">
<parameter type="const gchar *" name="s" comment="The string to be cloned"/>
diff --git a/src/libical-glib/api/i-cal-property.xml b/src/libical-glib/api/i-cal-property.xml
index 5e874b66..78533dd7 100644
--- a/src/libical-glib/api/i-cal-property.xml
+++ b/src/libical-glib/api/i-cal-property.xml
@@ -219,7 +219,7 @@
<parameter type="const gint" name="kind" comment="The kind"/>
<parameter type="const gchar *" name="str" comment="A string"/>
<returns type="gint" comment="The enum."/>
- <comment xml:space="preserve">Converts a integer and string into an enum.</comment>
+ <comment xml:space="preserve">Converts an integer and string into an enum.</comment>
</method>
<method name="i_cal_property_status_from_string" corresponds="icalproperty_string_to_status" since="1.0">
<parameter type="const gchar *" name="str" comment="A string"/>
diff --git a/src/libical-glib/api/i-cal-recur.xml b/src/libical-glib/api/i-cal-recur.xml
index e1d689b4..26b28e42 100644
--- a/src/libical-glib/api/i-cal-recur.xml
+++ b/src/libical-glib/api/i-cal-recur.xml
@@ -36,7 +36,7 @@
<method name="i_cal_recurrence_weekday_to_string" corresponds="icalrecur_weekday_to_string" since="2.0">
<parameter type="ICalRecurrenceWeekday" name="kind" comment="The frequency enum"/>
<returns type="const gchar *" comment="The string representation of weekday"/>
- <comment xml:space="preserve">Converts a enum representation to a string representation for the weekday.</comment>
+ <comment xml:space="preserve">Converts an enum representation to a string representation for the weekday.</comment>
</method>
<method name="i_cal_recurrence_frequency_from_string" corresponds="icalrecur_string_to_freq" since="2.0">
<parameter type="const gchar *" name="str" comment="The string representation of the frequency"/>
@@ -46,7 +46,7 @@
<method name="i_cal_recurrence_frequency_to_string" corresponds="icalrecur_freq_to_string" since="2.0">
<parameter type="ICalRecurrenceFrequency" name="kind" comment="The frequency enum"/>
<returns type="const gchar *" comment="The string representation of frequency"/>
- <comment xml:space="preserve">Converts a enum representation to a string representation for the frequency.</comment>
+ <comment xml:space="preserve">Converts an enum representation to a string representation for the frequency.</comment>
</method>
<method name="i_cal_recurrence_skip_from_string" corresponds="icalrecur_string_to_skip" since="2.0">
<parameter type="const gchar *" name="str" comment="The string representation of the skip"/>
@@ -56,6 +56,6 @@
<method name="i_cal_recurrence_skip_to_string" corresponds="icalrecur_skip_to_string" since="2.0">
<parameter type="ICalRecurrenceSkip" name="kind" comment="The frequency enum"/>
<returns type="const gchar *" comment="The string representation of skip"/>
- <comment xml:space="preserve">Converts a enum representation to a string representation for the skip.</comment>
+ <comment xml:space="preserve">Converts an enum representation to a string representation for the skip.</comment>
</method>
</structure>
diff --git a/src/libical/icalcomponent.h b/src/libical/icalcomponent.h
index 3774a253..ac0828f0 100644
--- a/src/libical/icalcomponent.h
+++ b/src/libical/icalcomponent.h
@@ -215,7 +215,7 @@ LIBICAL_ICAL_EXPORT icalcomponent *icalcomponent_get_first_real_component(icalco
/** @brief Gets the timespan covered by this component, in UTC.
*
* See icalcomponent_foreach_recurrence() for a better way to
- * extract spans from an component.
+ * extract spans from a component.
*
* This method can be called on either a VCALENDAR or any real
* component. If the VCALENDAR contains no real component, but
diff --git a/src/libical/icalmemory.h b/src/libical/icalmemory.h
index adb580da..3163e30f 100644
--- a/src/libical/icalmemory.h
+++ b/src/libical/icalmemory.h
@@ -264,7 +264,7 @@ LIBICAL_ICAL_EXPORT void icalmemory_free_buffer(void *buf);
normally allocated memory, or on buffers created from
icalmemory_new_buffer, never with buffers created by
icalmemory_tmp_buffer. If icalmemory_append_string has to resize a
- buffer on the ring, the ring will loose track of it an you will
+ buffer on the ring, the ring will loose track of it and you will
have memory problems. */
/**
diff --git a/src/libical/icalparameter.h b/src/libical/icalparameter.h
index 93cd4855..bedfd0a6 100644
--- a/src/libical/icalparameter.h
+++ b/src/libical/icalparameter.h
@@ -209,7 +209,7 @@ LIBICAL_ICAL_EXPORT void icalparameter_free(icalparameter *parameter);
LIBICAL_ICAL_EXPORT char *icalparameter_as_ical_string(icalparameter *parameter);
/**
- * @brief Converts icalparameter into an string representation according to RFC5445/RFC6868.
+ * @brief Converts icalparameter into a string representation according to RFC5445/RFC6868.
* @param parameter The icalparameter to convert
* @return A string representing the parameter
* @sa icalparameter_as_ical_string()
@@ -614,7 +614,7 @@ LIBICAL_ICAL_EXPORT const char *icalparameter_kind_to_string(icalparameter_kind
LIBICAL_ICAL_EXPORT icalparameter_kind icalparameter_string_to_kind(const char *string);
/**
- * @brief Checks the validity of a icalparameter_kind
+ * @brief Checks the validity of an icalparameter_kind
* @param kind The icalparameter_kind
* @return 1 if @a kind is valid, 0 otherwise
*
diff --git a/src/libical/icalrecur.c b/src/libical/icalrecur.c
index 6080bea5..6106bdee 100644
--- a/src/libical/icalrecur.c
+++ b/src/libical/icalrecur.c
@@ -79,7 +79,7 @@
Next_day() differs from next_hour because it does not use the BYDAY
array to select an appropriate day. Instead, it returns every day (
incrementing by 1 if the frequency is not DAILY with INTERVAL!=1)
- Any days that are not specified in an non-empty BYDAY array are
+ Any days that are not specified in a non-empty BYDAY array are
filtered out later.
Generally, the flow of these routine is for a next_* call a next_*
diff --git a/src/libical/icaltime.h.cmake b/src/libical/icaltime.h.cmake
index cf9f2688..c94cde75 100644
--- a/src/libical/icaltime.h.cmake
+++ b/src/libical/icaltime.h.cmake
@@ -327,7 +327,7 @@ LIBICAL_ICAL_EXPORT int icaltime_compare_date_only_tz(const struct icaltimetype
/** Adds or subtracts a number of days, hours, minutes and seconds. */
/** @brief Internal, shouldn't be part of the public API
*
- * Adds or subtracts a time from a icaltimetype. This time is given
+ * Adds or subtracts a time from an icaltimetype. This time is given
* as a number of days, hours, minutes and seconds.
*
* @note This function is exactly the same as
diff --git a/src/libical/icaltimezone.c b/src/libical/icaltimezone.c
index acaf39c2..f4f53c61 100644
--- a/src/libical/icaltimezone.c
+++ b/src/libical/icaltimezone.c
@@ -1101,7 +1101,7 @@ static size_t icaltimezone_find_nearby_change(icaltimezone *zone, icaltimezonech
return middle;
}
-/** @brief Adds (or subtracts) a time from a icaltimezonechange.
+/** @brief Adds (or subtracts) a time from an icaltimezonechange.
*
* NOTE: This function is exactly the same as icaltime_adjust() except
* for the type of the first parameter.
diff --git a/src/libical/sspm.c b/src/libical/sspm.c
index 931ced09..a81af299 100644
--- a/src/libical/sspm.c
+++ b/src/libical/sspm.c
@@ -793,7 +793,7 @@ static void sspm_make_part(struct mime_impl *impl,
strcpy(data, line);
}
- /* add a end-of-string after the data, just in case binary
+ /* add an end-of-string after the data, just in case binary
data from decode64 gets passed to a string handling
routine in add_line */
data[*size + 1] = '\0';
diff --git a/src/libicalss/icalspanlist_cxx.h b/src/libicalss/icalspanlist_cxx.h
index 775a6d9f..6db794b6 100644
--- a/src/libicalss/icalspanlist_cxx.h
+++ b/src/libicalss/icalspanlist_cxx.h
@@ -43,7 +43,7 @@ public:
/** Constructs an ICalSpanList from an icalset */
ICalSpanList(icalset *set, icaltimetype start, icaltimetype end);
- /** Constructs an ICalSpanList from the VFREEBUSY chunk of a icalcomponent */
+ /** Constructs an ICalSpanList from the VFREEBUSY chunk of an icalcomponent */
explicit ICalSpanList(icalcomponent *comp);
/** Constructs an ICalSpanList from the VFREEBUSY chunk of a vcomponent */
diff --git a/src/libicalvcal/README.txt b/src/libicalvcal/README.txt
index 734c30a4..3f9f2d8a 100644
--- a/src/libicalvcal/README.txt
+++ b/src/libicalvcal/README.txt
@@ -486,7 +486,7 @@ d. properties name (id) are case insensitive.
-- set an integer value of a VObject.
void setVObjectLongValue(VObject *o, unsigned long l);
- -- set an long integer value of a VObject.
+ -- set a long integer value of a VObject.
void setVObjectAnyValue(VObject *o, void *t);
-- set any value of a VObject. The value type is
diff --git a/src/libicalvcal/icalvcal.c b/src/libicalvcal/icalvcal.c
index 01c32c6f..c7ddcb2d 100644
--- a/src/libicalvcal/icalvcal.c
+++ b/src/libicalvcal/icalvcal.c
@@ -112,7 +112,7 @@ static void convert_floating_time_to_utc(struct icaltimetype *itt)
icaltime_t t;
/* We assume the floating time is using the current Unix timezone.
- So we convert to a icaltime_t using icalmktime(), and then back to a struct tm
+ So we convert to an icaltime_t using icalmktime(), and then back to a struct tm
using icalgmtime_r, so it is the UTC time. */
tmp_tm.tm_year = itt->year - 1900;
tmp_tm.tm_mon = itt->month - 1;
@@ -122,7 +122,7 @@ static void convert_floating_time_to_utc(struct icaltimetype *itt)
tmp_tm.tm_sec = itt->second;
tmp_tm.tm_isdst = -1;
- /* Convert to a icaltime_t. */
+ /* Convert to an icaltime_t. */
t = icalmktime(&tmp_tm);
/* Now convert back to a struct tm, but with a UTC time. */
diff --git a/src/test/libical-glib/property.py b/src/test/libical-glib/property.py
index dad268a4..69b142c7 100644
--- a/src/test/libical-glib/property.py
+++ b/src/test/libical-glib/property.py
@@ -33,7 +33,7 @@ altrep2 = "This is an altrep 2"
parameter2 = ICalGLib.Parameter.new_altrep(altrep2)
stringProperty.add_parameter(parameter1)
stringProperty.add_parameter(parameter2)
-stringProperty.set_parameter_from_string("ACTIONPARAM", "This is a action param")
+stringProperty.set_parameter_from_string("ACTIONPARAM", "This is an action param")
assert stringProperty.count_parameters() == 3
retrieved_parameter1 = stringProperty.get_first_parameter(ICalGLib.ParameterKind.ALTREP_PARAMETER)
@@ -41,7 +41,7 @@ assert retrieved_parameter1.as_ical_string() == parameter1.as_ical_string()
retrieved_parameter2 = stringProperty.get_next_parameter(ICalGLib.ParameterKind.ALTREP_PARAMETER)
assert retrieved_parameter2.as_ical_string() == parameter2.as_ical_string()
retrieved_parameter3 = stringProperty.get_first_parameter(ICalGLib.ParameterKind.ACTIONPARAM_PARAMETER)
-assert retrieved_parameter3.as_ical_string() == "ACTIONPARAM=This is a action param"
+assert retrieved_parameter3.as_ical_string() == "ACTIONPARAM=This is an action param"
stringProperty.remove_parameter_by_kind(ICalGLib.ParameterKind.CHARSET_PARAMETER)
assert stringProperty.count_parameters() == 3