Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • According to different types of data, find out differnt conversion method to convert those datas to bits. The conversion method must ensure the same lexicographically order before and after the conversion\

          unsigned int converter:  

...

         if the string value is exactly 8 bytes long, use the word’s UTF-8 representation as is.
         if the word is shorter than 8 bytes long, add bytes with a value of zero to the end of the word’s UTF-8 representation until it is exactly 8 bytes.
         if the word is longer than 8 bytes, use only the first 8 bytes of its UTF-8 representation.

              

         

The conversion method above seems perfect, however it cannot solve the following problems:

...

                          eg: "https://www.baidu.com" , "https://www.google.com" has the same 8-byte value

...