michael@0: // Copyright 2013 Google Inc. All Rights Reserved. michael@0: // michael@0: // Licensed under the Apache License, Version 2.0 (the "License"); michael@0: // you may not use this file except in compliance with the License. michael@0: // You may obtain a copy of the License at michael@0: // michael@0: // http://www.apache.org/licenses/LICENSE-2.0 michael@0: // michael@0: // Unless required by applicable law or agreed to in writing, software michael@0: // distributed under the License is distributed on an "AS IS" BASIS, michael@0: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: // See the License for the specific language governing permissions and michael@0: // limitations under the License. michael@0: michael@0: // michael@0: // Author: dsites@google.com (Dick Sites) michael@0: // michael@0: michael@0: michael@0: #ifndef I18N_ENCODINGS_CLD2_INTERNAL_LANGSPAN_H_ michael@0: #define I18N_ENCODINGS_CLD2_INTERNAL_LANGSPAN_H_ michael@0: michael@0: #include "generated_language.h" michael@0: #include "generated_ulscript.h" michael@0: michael@0: namespace CLD2 { michael@0: michael@0: typedef struct { michael@0: char* text; // Pointer to the span, somewhere michael@0: int text_bytes; // Number of bytes of text in the span michael@0: int offset; // Offset of start of span in original input buffer michael@0: ULScript ulscript; // Unicode Letters Script of this span michael@0: Language lang; // Language identified for this span michael@0: bool truncated; // true if buffer filled up before a michael@0: // different script or EOF was found michael@0: } LangSpan; michael@0: michael@0: } // namespace CLD2 michael@0: #endif // I18N_ENCODINGS_CLD2_INTERNAL_LANGSPAN_H_ michael@0: