code: private static Platform parsePlatform(String userAgentString) {
  		for (Platform platform : Platform.platforms) {
  			if (platform.isMatch(userAgentString)) {
  				return platform;
  			}
  		}
  		return Platform.Unknown;
  	}
docs: 解析平台类型
  
  @param userAgentString User-Agent字符串
  @return 平台类型