OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 void clear() | 67 void clear() |
68 { | 68 { |
69 m_type = Uninitialized; | 69 m_type = Uninitialized; |
70 m_range.m_start = 0; | 70 m_range.m_start = 0; |
71 m_range.m_end = 0; | 71 m_range.m_end = 0; |
72 m_baseOffset = 0; | 72 m_baseOffset = 0; |
73 m_data.clear(); | 73 m_data.clear(); |
74 } | 74 } |
75 | 75 |
| 76 bool isUninitialized() { return m_type == Uninitialized; } |
| 77 |
76 int startIndex() const { return m_range.m_start; } | 78 int startIndex() const { return m_range.m_start; } |
77 int endIndex() const { return m_range.m_end; } | 79 int endIndex() const { return m_range.m_end; } |
78 | 80 |
79 void setBaseOffset(int offset) | 81 void setBaseOffset(int offset) |
80 { | 82 { |
81 m_baseOffset = offset; | 83 m_baseOffset = offset; |
82 } | 84 } |
83 | 85 |
84 void end(int endOffset) | 86 void end(int endOffset) |
85 { | 87 { |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 552 |
551 String name(attribute.m_name.data(), attribute.m_name.size()); | 553 String name(attribute.m_name.data(), attribute.m_name.size()); |
552 String value(attribute.m_value.data(), attribute.m_value.size()); | 554 String value(attribute.m_value.data(), attribute.m_value.size()); |
553 m_attributes->insertAttribute(Attribute::createMapped(name, value), fals
e); | 555 m_attributes->insertAttribute(Attribute::createMapped(name, value), fals
e); |
554 } | 556 } |
555 } | 557 } |
556 | 558 |
557 } | 559 } |
558 | 560 |
559 #endif | 561 #endif |
OLD | NEW |