473,545 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

string that will sort after all strings of Roman letters.

I want a string of characters that will sort after all strings of Roman
letters.

Something that will display using a font like the one this note is written
with.

Is there such a thing?

I tried using a string starting with { because in ASCII it comes after the
letters but that sorts before the letters.

Can you help?
thanks
ps

I tried to state this so I wouldn't get replies about the many cultures,
alphabets, etc.

I'm talking simple English Last names as strings before the special string.
Oct 17 '07 #1
15 2584
Hi,

You are not writing in Roman characters so it is in fact impossible to
answer your question in my idea. First try out what are Roman characters and
tell us what you mean. For sure they are not used in the English language.

As well are it not the characters I see in this message. Everyone has his
own font settings which change the way a character is showed.

Roman characters are/were used in Latin. Probably you mean the standard
characters (26) as used in most North/West Europe languages.

Because that you don't want to hear about cultures, is your question the
same as a question like how to eat a Coke but you dont't want to hear about
drinking.

However you can reach your goal. You write as some people who comes from a
country where English is standard spoken however for sure not an
Englishman/woman.

Therefore if you don't want to use cultures convert your characters to bytes
and delete the first bit of that. Then you have real ASCII and can sort it
like that (however there are still more characters in that). If that is not
enough than filter all the bits from the byte that does not fullfil that.
Not that difficult to do, it is the same way as it was done half a century
ago.

Cor
Oct 17 '07 #2
Academia wrote:
I want a string of characters that will sort after all strings of
Roman letters.

Something that will display using a font like the one this note is
written with.

Is there such a thing?

I tried using a string starting with { because in ASCII it comes
after the letters but that sorts before the letters.
I think you want to see the help for String.CompareO rdinal and perhaps
Array.Sort using a user-supplied IComparer.

Andrew
Oct 17 '07 #3
I looked at that .
Maybe I can ask it differently:
How can I find the numeric values of the various character objects that can
be in the strings I'm using. These strings come from an English US .TXT
file.

I need to find a character that has a bigger value than Thanks "z"

Thanks

"Andrew Morton" <ak*@in-press.co.uk.inv alidwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Academia wrote:
>I want a string of characters that will sort after all strings of
Roman letters.

Something that will display using a font like the one this note is
written with.

Is there such a thing?

I tried using a string starting with { because in ASCII it comes
after the letters but that sorts before the letters.

I think you want to see the help for String.CompareO rdinal and perhaps
Array.Sort using a user-supplied IComparer.

Andrew

Oct 17 '07 #4
Maybe I can ask it differently:
How can I find the numeric values of the various character objects that can
be in the strings I'm using. These strings come from an English US .TXT
file.

I need to find a character that has a bigger value than Thanks "z"

Thanks

"Cor Ligthert[MVP]" <no************ @planet.nlwrote in message
news:AE******** *************** ***********@mic rosoft.com...
Hi,

You are not writing in Roman characters so it is in fact impossible to
answer your question in my idea. First try out what are Roman characters
and tell us what you mean. For sure they are not used in the English
language.

As well are it not the characters I see in this message. Everyone has his
own font settings which change the way a character is showed.

Roman characters are/were used in Latin. Probably you mean the standard
characters (26) as used in most North/West Europe languages.

Because that you don't want to hear about cultures, is your question the
same as a question like how to eat a Coke but you dont't want to hear
about drinking.

However you can reach your goal. You write as some people who comes from a
country where English is standard spoken however for sure not an
Englishman/woman.

Therefore if you don't want to use cultures convert your characters to
bytes and delete the first bit of that. Then you have real ASCII and can
sort it like that (however there are still more characters in that). If
that is not enough than filter all the bits from the byte that does not
fullfil that. Not that difficult to do, it is the same way as it was done
half a century ago.

Cor


Oct 17 '07 #5
Academia.

Those characters are all in the ASCII characterset. You get those by first
filtering the first bit from a to a Byte converted Character.

At the moment MSDN seems down but you find probably all you need in this
search.
(Have a look at ASCII because that is converting to the characters in the
first 127 range)

http://search.msdn.microsoft.com/sea...coding+to+byte

Cor
Oct 17 '07 #6
Well then I'm confused. VS2005 help has ASCII Table of codes and { is 123
(7D) but when the ComboBox sorts the { shows up at the top of the list
instead of the bottom.

I understand that inside the code they are Unicode but don't they sort the
same as ASCII.

Do I have to do as you suggest below some how?
Thanks for the help
"Cor Ligthert[MVP]" <no************ @planet.nlwrote in message
news:D7******** *************** ***********@mic rosoft.com...
Academia.

Those characters are all in the ASCII characterset. You get those by first
filtering the first bit from a to a Byte converted Character.

At the moment MSDN seems down but you find probably all you need in this
search.
(Have a look at ASCII because that is converting to the characters in the
first 127 range)

http://search.msdn.microsoft.com/sea...coding+to+byte

Cor


Oct 17 '07 #7
By default .NET does not sort strings by ASCII values. There are
various discussions of the different string sort methods on MSDN, here
is one link:
<http://msdn2.microsoft .com/en-us/library/ms973919.aspx>

On Wed, 17 Oct 2007 16:09:39 -0400, "Academia"
<ac************ @a-znet.comwrote:
>Well then I'm confused. VS2005 help has ASCII Table of codes and { is 123
(7D) but when the ComboBox sorts the { shows up at the top of the list
instead of the bottom.

I understand that inside the code they are Unicode but don't they sort the
same as ASCII.

Do I have to do as you suggest below some how?
Thanks for the help
"Cor Ligthert[MVP]" <no************ @planet.nlwrote in message
news:D7******* *************** ************@mi crosoft.com...
>Academia.

Those characters are all in the ASCII characterset. You get those by first
filtering the first bit from a to a Byte converted Character.

At the moment MSDN seems down but you find probably all you need in this
search.
(Have a look at ASCII because that is converting to the characters in the
first 127 range)

http://search.msdn.microsoft.com/sea...coding+to+byte

Cor

Oct 17 '07 #8
I read that once. I'd have to spend sometime to understand it completely but
I don't think I need to know all that.

ASCII would do just fine for what I need.

In the site I saw how to explictly set the StringCompariso n value but not
kow to make the combobox use a given value.

Is there some system wide parameter I can set that would make all sorts
default to StringCompariso n.Ordinal (I believe that is the value I need)?

Thanks for pointing out the site, I'll spend more time studying it ,out of
curiosity, but for my application only ASCII is needed. Or maybe I should
say: only en-us is all I need - I don't understand this enough to know the
difference yet.

Thanks again

"Jack Jackson" <ja********@peb bleridge.comwro te in message
news:pt******** *************** *********@4ax.c om...
By default .NET does not sort strings by ASCII values. There are
various discussions of the different string sort methods on MSDN, here
is one link:
<http://msdn2.microsoft .com/en-us/library/ms973919.aspx>

On Wed, 17 Oct 2007 16:09:39 -0400, "Academia"
<ac************ @a-znet.comwrote:
>>Well then I'm confused. VS2005 help has ASCII Table of codes and { is 123
(7D) but when the ComboBox sorts the { shows up at the top of the list
instead of the bottom.

I understand that inside the code they are Unicode but don't they sort the
same as ASCII.

Do I have to do as you suggest below some how?
Thanks for the help
"Cor Ligthert[MVP]" <no************ @planet.nlwrote in message
news:D7****** *************** *************@m icrosoft.com...
>>Academia.

Those characters are all in the ASCII characterset. You get those by
first
filtering the first bit from a to a Byte converted Character.

At the moment MSDN seems down but you find probably all you need in this
search.
(Have a look at ASCII because that is converting to the characters in
the
first 127 range)

http://search.msdn.microsoft.com/sea...coding+to+byte

Cor


Oct 18 '07 #9

"Cor Ligthert[MVP]" <no************ @planet.nlwrote in message
news:AE******** *************** ***********@mic rosoft.com...
Hi,

You are not writing in Roman characters so it is in fact impossible to
answer your question in my idea. First try out what are Roman characters
and tell us what you mean. For sure they are not used in the English
language.

Is "Latin characters" the correct nomenclature?

Thanks
Oct 18 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2795
by: Edward K. Ream | last post by:
From the documentation for the string module at: C:\Python23\Doc\Python-Docs-2.3.1\lib\module-string.html letters: The concatenation of the strings lowercase and uppercase described below. The specific value is locale-dependent, and will be updated when locale.setlocale() is called.
3
2183
by: Piet | last post by:
Hello, I have a very strange problem with regular expressions. The problem consists of analyzing the properties of columns of a MySQL database. When I request the column type, I get back a string with the following composition: vartype(width|list) further variable attributes. vartype is a simple string(varchar, tinyint ...) which might be...
9
5675
by: Danny | last post by:
HI again Is there a nifty function in access that will: 1. return the amount of occurances of a small string within a larger string? this<br>is<br>a<br>test would return 3 for <br>
51
8220
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct code? many thx!
3
2680
by: Raed Sawalha | last post by:
I have the following letters; string letters = "a;b;c....to z"; the I need to replace the incoming string which containing letters above with integer 1 i did following for(int u=0;u<letters.Split(';').Length;u++) { FilesName = FilesName.Trim().Replace(letters.Split(';'), "1"); }
4
2157
by: Gaijinco | last post by:
I made this function which given two strings c1 and c2 test if with the letters of both you can exactly form the string c3, so for exaple c1 = "evol" c2= "ution" and c3 = "evolution" will yield true. The function looks like this: #include <iostream> #include <algorithm> #include <string> using namespace std;
12
4360
by: aparnakakkar2003 | last post by:
can any one tell me if I give the followiing string in input: ABC abc BBC then how I can get ABC abc BBC
4
2046
by: cpptutor2000 | last post by:
Could some C guru provide some hints on my problem? I am trying to sort an array of character strings, where each string contains lowercase, uppercase, digits as well as non-alphanumeric characters as '-', '(' or '/'. Obviously, standard C functions as 'strcmp' would fail in these cases. I can convert all the non-digit characters to...
7
3482
by: Johny | last post by:
I have a string of a variable length and I need to split the string in strings of 6 characters . But if the 6th character is not space then I must split the string at possition before the 6th character. For example: if the main string S is S='abcde fghc ijkl mnop'
0
7473
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7661
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7433
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7763
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5340
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
712
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.