/*
* These are used for type provide some type safety to the C API (as opposed to
- * using void *, but pointers to them are simply cast to the coresponding C++
+ * using void *, but pointers to them are simply cast to the corresponding C++
* types in the implementation.
*/
******************************************************************************/
/*!
- * Returns the lenght of the file in seconds.
+ * Returns the length of the file in seconds.
*/
int taglib_audioproperties_length(const TagLib_AudioProperties *audioProperties);
virtual ~AudioProperties();
/*!
- * Returns the lenght of the file in seconds.
+ * Returns the length of the file in seconds.
*/
virtual int length() const = 0;
public:
virtual ~FileTypeResolver() {}
/*!
- * This method must be overriden to provide an additional file type
+ * This method must be overridden to provide an additional file type
* resolver. If the resolver is able to determine the file type it should
* return a valid File object; if not it should return 0.
*
// A Xiph comment portion of the data stream starts with a 4-byte descriptor.
// The first byte indicates the frame type. The last three bytes are used
- // to give the lenght of the data segment. Here we start
+ // to give the length of the data segment. Here we start
ByteVector data = ByteVector::fromUInt(d->xiphCommentData.size());
/*!
* This is an implementation of ID3v2 relative volume adjustment. The
- * presense of this frame makes it possible to specify an increase in volume
+ * presence of this frame makes it possible to specify an increase in volume
* for an audio file or specific audio tracks in that file.
*
* Multiple relative volume adjustment frames may be present in the tag
/*!
* Sets the description of the frame to \a s. \a s must be unique. You can
- * check for the presense of another user defined text frame of the same type
+ * check for the presence of another user defined text frame of the same type
* using find() and testing for null.
*/
void setDescription(const String &s);
/*!
* Returns the size of the frame data portion, as set when setData() was
- * called or set explicity via setFrameSize().
+ * called or set explicitly via setFrameSize().
*/
uint frameSize() const;
bool unsycronisation() const;
/*!
- * Returns true if the flag for a data lenght indicator is set.
+ * Returns true if the flag for a data length indicator is set.
*/
bool dataLengthIndicator() const;
virtual ~XingHeader();
/*!
- * Returns true if the data was parsed properly and if there is a vaild
+ * Returns true if the data was parsed properly and if there is a valid
* Xing header present.
*/
bool isValid() const;
// Byte number 27 is the number of page segments, which is the only variable
// length portion of the page header. After reading the number of page
- // segments we'll then read in the coresponding data for this count.
+ // segments we'll then read in the corresponding data for this count.
int pageSegmentCount = uchar(data[26]);
ByteVector data;
// Add the vendor ID length and the vendor ID. It's important to use the
- // lenght of the data(String::UTF8) rather than the lenght of the the string
+ // length of the data(String::UTF8) rather than the length of the the string
// since this is UTF8 text and there may be more characters in the data than
// in the UTF16 string.
* This is an attempt to abstract away the difference in the meta data formats
* of various audio codecs and tagging schemes. As such it is generally a
* subset of what is available in the specific formats but should be suitable
- * for most applications. This is meant to complient the generic APIs found
+ * for most applications. This is meant to compliment the generic APIs found
* in TagLib::AudioProperties, TagLib::File and TagLib::FileRef.
*/
bool isEmpty() const;
/*!
- * Find the first occurance of \a value.
+ * Find the first occurrence of \a value.
*/
Iterator find(const T &value);
/*!
- * Find the first occurance of \a value.
+ * Find the first occurrence of \a value.
*/
ConstIterator find(const T &value) const;
bool isEmpty() const;
/*!
- * Find the first occurance of \a key.
+ * Find the first occurrence of \a key.
*/
Iterator find(const Key &key);
/*!
- * Find the first occurance of \a key.
+ * Find the first occurrence of \a key.
*/
ConstIterator find(const Key &key) const;
if(begin == end)
return null;
- // There must be at least one non-whitespace charater here for us to have
+ // There must be at least one non-whitespace character here for us to have
// gotten this far, so we should be safe not doing bounds checking.
do {
ConstIterator end() const;
/*!
- * Finds the first occurance of pattern \a s in this string starting from
+ * Finds the first occurrence of pattern \a s in this string starting from
* \a offset. If the pattern is not found, -1 is returned.
*/
int find(const String &s, int offset = 0) const;
Conversions between UTF32, UTF-16, and UTF-8. Header file.
- Several funtions are included here, forming a complete set of
+ Several functions are included here, forming a complete set of
conversions between the three formats. UTF-7 is not included
here, but is handled in a separate source file.