Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3734

To compare two string as lowercase.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3
    • 0.10.0
    • D - Library
    • None

    Description

      static bool compToLower(ubyte a, ubyte b) {
      return a == toLower(cast(char)b);
      }
      it looks unexpected result got when parameter a is uppercase and b is lowercase.

      if (startsWith!compToLower(split[0], cast(ubyte[])"content-length")) {
      ...
      }
      split[0] is string of 'Content-Length', it contains character with uppercase.

      Attachments

        Activity

          People

            gityf WangYaofu
            gityf WangYaofu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: