OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 """ | 8 """ |
9 Responsible for generating actual decoders based on parsed table | 9 Responsible for generating actual decoders based on parsed table |
10 representations. | 10 representations. |
11 | 11 |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 return dgen_output.GetDecodersBlock(n, separators, | 435 return dgen_output.GetDecodersBlock(n, separators, |
436 GetActualDecoders(decoder), | 436 GetActualDecoders(decoder), |
437 _ActualNameLessActualPrefix) | 437 _ActualNameLessActualPrefix) |
438 | 438 |
439 def _ActualNameLessActualPrefix(decoder): | 439 def _ActualNameLessActualPrefix(decoder): |
440 name = ActualName(decoder) | 440 name = ActualName(decoder) |
441 if name.startswith('Actual_'): | 441 if name.startswith('Actual_'): |
442 return name[len('Actual_'):] | 442 return name[len('Actual_'):] |
443 else: | 443 else: |
444 return name | 444 return name |
OLD | NEW |