Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ZXTextParsedResult.m 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "ZXParsedResultType.h"
  17. #import "ZXTextParsedResult.h"
  18. @implementation ZXTextParsedResult
  19. - (id)initWithText:(NSString *)text language:(NSString *)language {
  20. if (self = [super initWithType:kParsedResultTypeText]) {
  21. _text = text;
  22. _language = language;
  23. }
  24. return self;
  25. }
  26. + (id)textParsedResultWithText:(NSString *)text language:(NSString *)language {
  27. return [[self alloc] initWithText:text language:language];
  28. }
  29. - (NSString *)displayResult {
  30. return self.text;
  31. }
  32. @end