Index: src/OFINICategory.h ================================================================== --- src/OFINICategory.h +++ src/OFINICategory.h @@ -42,12 +42,12 @@ /** * @brief Returns the string value for the specified key, or `nil` if it does * not exist. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is returned. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is returned. * * @param key The key for which the string value should be returned * @return The string value for the specified key, or `nil` if it does not exist */ - (nullable OFString *)stringValueForKey: (OFString *)key; @@ -54,12 +54,12 @@ /** * @brief Returns the string value for the specified key or the specified * default value if it does not exist. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is returned. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is returned. * * @param key The key for which the string value should be returned * @param defaultValue The value to return if the key does not exist * @return The string value for the specified key or the specified default * value if it does not exist @@ -69,12 +69,12 @@ /** * @brief Returns the long long value for the specified key or the specified * default value if it does not exist. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is returned. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is returned. * * @param key The key for which the long long value should be returned * @param defaultValue The value to return if the key does not exist * @return The long long value for the specified key or the specified default * value if it does not exist @@ -84,12 +84,12 @@ /** * @brief Returns the bool value for the specified key or the specified default * value if it does not exist. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is returned. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is returned. * * @param key The key for which the bool value should be returned * @param defaultValue The value to return if the key does not exist * @return The bool value for the specified key or the specified default value * if it does not exist @@ -99,12 +99,12 @@ /** * @brief Returns the float value for the specified key or the specified * default value if it does not exist. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is returned. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is returned. * * @param key The key for which the float value should be returned * @param defaultValue The value to return if the key does not exist * @return The float value for the specified key or the specified default value * if it does not exist @@ -114,12 +114,12 @@ /** * @brief Returns the double value for the specified key or the specified * default value if it does not exist. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is returned. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is returned. * * @param key The key for which the double value should be returned * @param defaultValue The value to return if the key does not exist * @return The double value for the specified key or the specified default * value if it does not exist @@ -141,24 +141,24 @@ - (OFArray OF_GENERIC(OFString *) *)stringValuesForKey: (OFString *)key; /** * @brief Sets the value of the specified key to the specified string. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is changed. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the + * value of the first key/value pair found is changed. * * @param stringValue The string value to which the key should be set * @param key The key for which the new value should be set */ - (void)setStringValue: (OFString *)stringValue forKey: (OFString *)key; /** - * @brief Sets the value of the specified key to the specified integer. + * @brief Sets the value of the specified key to the specified long long. * - * If the specified key is a multi-key (see @ref arrayForKey:), the value of - * the first key/value pair found is changed. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is changed. * * @param longLongValue The long long value to which the key should be set * @param key The key for which the new value should be set */ - (void)setLongLongValue: (long long)longLongValue @@ -189,12 +189,12 @@ forKey: (OFString *)key; /** * @brief Sets the value of the specified key to the specified double. * - * If the specified key is a multi-key (see @ref stringValuesForKey:), the - * value of the first key/value pair found is changed. + * If the specified key is a multi-key (see @ref stringValuesForKey:), the value + * of the first key/value pair found is changed. * * @param doubleValue The double value to which the key should be set * @param key The key for which the new value should be set */ - (void)setDoubleValue: (double)doubleValue @@ -216,14 +216,14 @@ forKey: (OFString *)key; /** * @brief Removes the value for the specified key * - * If the specified key is a multi-key (see @ref arrayForKey:), all key/value - * pairs matching the specified key are removed. + * If the specified key is a multi-key (see @ref stringValuesForKey:), all + * key/value pairs matching the specified key are removed. * * @param key The key of the value to remove */ - (void)removeValueForKey: (OFString *)key; @end OF_ASSUME_NONNULL_END