lexicographic Questions

4

Does anyone know of a library for encoding a number of primitive types (like integers, floats, strings, etc) into a string but preserving the lexicographical order of the types? Ideally, I'm looki...
Charissa asked 19/11, 2009 at 3:31

1

Solved

Are strings compared lexicographical when using the overriden bool operator<(const std::string & rhs) operator? In example: std::string str1 = "aabbcc" std::string str2 = "bbaacc" (str1 &l...
Scofield asked 8/4, 2012 at 20:40

8

Solved

I need to sort file names as follows: 1.log, 2.log, 10.log But when I use OrderBy(fn => fn) it will sort them as: 1.log, 10.log, 2.log I obviously know that this could be done by writing another ...
Monumental asked 26/8, 2011 at 12:32

1

Solved

I'm looking for a way to serialize floating points so that in their serialized form a lexicographical comparison is the same as a floating point comparison. I think it is possible by storing it in ...
Trudeau asked 9/3, 2011 at 8:27

6

Solved

For reasons I completely disagree with but "The Powers (of Anti-Usability) That Be" continue to decree despite my objections, I have a sorting routine which does basic strcmp() compares to sort by ...
Sonjasonnet asked 15/6, 2010 at 21:18

© 2022 - 2024 — McMap. All rights reserved.