Declaration

class func blockTitle(
    fromFileName fileName: String,
    blockType: UnsafeMutablePointer<GSFeaBlockType>?
) -> String?

Declaration

+ (NSString *) blockTitleFromFileName:(NSString *) fileName
                            blockType:(GSFeaBlockType *) blockType;

Declaration

blockTitleFromFileName_blockType_(
    fileName: str,
    blockType: GSFeaBlockType
) -> str

Parameters

fileName

The file name of the block.

blockType

Set to the type of the block, if non-NULL.

Return Value

The title of the block, or nil, if the file name is not valid for a block.

Discussion

For features, the title is the tag, for classes and prefixes, the title is the name.