Ignore:
Timestamp:
Oct 23, 2018, 10:18:07 AM (9 months ago)
Author:
cameron
Message:

Constant attributes for GetStringValue?, GetReflexiveSet? functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/UCD/PropertyObjects.cpp

    r6158 r6175  
    4646}
    4747
    48 const std::string PropertyObject::GetStringValue(codepoint_t cp) {
     48const std::string PropertyObject::GetStringValue(codepoint_t cp) const {
    4949    llvm::report_fatal_error("GetStringValue unsupported");
    5050}
     
    5858}
    5959   
    60 const UnicodeSet PropertyObject::GetReflexiveSet() {
     60const UnicodeSet PropertyObject::GetReflexiveSet() const {
    6161    return UnicodeSet();
    6262}
     
    416416}
    417417   
    418 const UnicodeSet StringPropertyObject::GetReflexiveSet() {
     418const UnicodeSet StringPropertyObject::GetReflexiveSet() const {
    419419    return mSelfCodepointSet;
    420420}
    421421
    422 const std::string StringPropertyObject::GetStringValue(codepoint_t cp) {
     422const std::string StringPropertyObject::GetStringValue(codepoint_t cp) const {
    423423    if (mNullCodepointSet.contains(cp)) return "";
    424424    if (mSelfCodepointSet.contains(cp)) {
     
    475475}
    476476
    477 const UnicodeSet StringOverridePropertyObject::GetReflexiveSet() {
     477const UnicodeSet StringOverridePropertyObject::GetReflexiveSet() const {
    478478    return mBaseObject.GetReflexiveSet() - mOverriddenSet;
    479479}
    480480
    481 const std::string StringOverridePropertyObject::GetStringValue(codepoint_t cp) {
     481const std::string StringOverridePropertyObject::GetStringValue(codepoint_t cp) const {
    482482    if (!mOverriddenSet.contains(cp)) return mBaseObject.GetStringValue(cp);
    483483    // Otherwise, binary search through the explicit cps to find the index.
Note: See TracChangeset for help on using the changeset viewer.