␉␉␉{␊ |
␉␉␉␉switch (k) {␊ |
␉␉␉␉␉case 0: // disk number␊ |
␉␉␉␉␉␉diskNum = [word characterAtIndex:0] - '0' ;␊ |
␉␉␉␉␉␉diskNum = [word intValue] ;␊ |
␉␉␉␉␉␉[ p setDiskNumber:diskNum];␊ |
␉␉␉␉␉␉break;␊ |
␉␉␉␉␉case 1: // partition number␊ |
␉␉␉␉␉␉partNum = [word characterAtIndex:0] - '0' ;␊ |
␉␉␉␉␉␉partNum = [word intValue] ;␊ |
␉␉␉␉␉␉[ p setPartitionNumber: partNum];␉␉␉␉␉␉␉␊ |
␉␉␉␉␉␉break;␊ |
␉␉␉␉␉case 2: // volume label␊ |
␉␉␉␉␉␉[p setVName: word];␊ |
␉␉␉␉␉case 3: // fstype␊ |
␉␉␉␉␉␉[p setVKind: word];␊ |
␉␉␉␉␉␉break;␊ |
␉␉␉␉␉case 4: // vUUID␊ |
␉␉␉␉␉␉[p setVUUID: word];␊ |
␉␉␉␉␉␉break;␊ |
␉␉␉␉␉default:␊ |
␉␉␉␉␉␉break;␊ |
␉␉␉␉}␊ |
|
␉␉␉␉␉ [p diskNumber], cPartDescSep,␊ |
␉␉␉␉␉ [p partitionNumber], cPartDescSep,␊ |
␉␉␉␉␉ [[p vName] UTF8String], cPartDescSep,␊ |
␉␉␉␉␉ [[p vKind] UTF8String]);␊ |
␉␉␉␉␉ [[p vKind] UTF8String], cPartDescSep, ␊ |
␉␉␉␉␉ [[p vUUID] UTF8String]);␊ |
␉␉␉␊ |
␉␉␉// write it to the dictionary␊ |
␉␉␉NSString * key = [[NSString alloc] initWithUTF8String: keyPartN];␊ |