Frameworks/Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h
branchadium-1.5.10.4
changeset 5985 5883c460b8cb
parent 5924 f0f2d246891c
equal deleted inserted replaced
5984:c42b73c02750 5985:5883c460b8cb
     7 //
     7 //
     8 
     8 
     9 #ifndef SUSTANDARDVERSIONCOMPARATOR_H
     9 #ifndef SUSTANDARDVERSIONCOMPARATOR_H
    10 #define SUSTANDARDVERSIONCOMPARATOR_H
    10 #define SUSTANDARDVERSIONCOMPARATOR_H
    11 
    11 
       
    12 #if __has_feature(modules)
       
    13 @import Foundation;
       
    14 #else
    12 #import <Foundation/Foundation.h>
    15 #import <Foundation/Foundation.h>
       
    16 #endif
    13 #import "SUExport.h"
    17 #import "SUExport.h"
    14 #import "SUVersionComparisonProtocol.h"
    18 #import "SUVersionComparisonProtocol.h"
       
    19 
       
    20 NS_ASSUME_NONNULL_BEGIN
    15 
    21 
    16 /*!
    22 /*!
    17     Sparkle's default version comparator.
    23     Sparkle's default version comparator.
    18 
    24 
    19     This comparator is adapted from MacPAD, by Kevin Ballard.
    25     This comparator is adapted from MacPAD, by Kevin Ballard.
    21     in components split by character type.
    27     in components split by character type.
    22 */
    28 */
    23 SU_EXPORT @interface SUStandardVersionComparator : NSObject <SUVersionComparison>
    29 SU_EXPORT @interface SUStandardVersionComparator : NSObject <SUVersionComparison>
    24 
    30 
    25 /*!
    31 /*!
       
    32     Initializes a new instance of the standard version comparator.
       
    33  */
       
    34 - (instancetype)init;
       
    35 
       
    36 /*!
    26     Returns a singleton instance of the comparator.
    37     Returns a singleton instance of the comparator.
       
    38  
       
    39     It is usually preferred to alloc/init new a comparator instead.
    27 */
    40 */
    28 + (SUStandardVersionComparator *)defaultComparator;
    41 + (SUStandardVersionComparator *)defaultComparator;
    29 
    42 
    30 /*!
    43 /*!
    31     Compares version strings through textual analysis.
    44     Compares version strings through textual analysis.
    33     See the implementation for more details.
    46     See the implementation for more details.
    34 */
    47 */
    35 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
    48 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
    36 @end
    49 @end
    37 
    50 
       
    51 NS_ASSUME_NONNULL_END
    38 #endif
    52 #endif