×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    45

    Check the existence of a string in a string pool (table)

    Hi everyone,

    I have a problem finding out if a string already exists in a string pool's opened tables. It seems that there is no support in the String Pools API for such thing. Has anybody encountered the problem and found a solution for that? Any help would be appreciated.

    Thanks,
    Catalin

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    London
    Posts
    41

    Re: Check the existence of a string in a string pool (table)

    A quick poke around the docs isn't clear on the matter. The best question I guess would be asking what it is exactly you are trying to do?

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Check the existence of a string in a string pool (table)

    Hi,

    I think some Find() method is missing here... but why you need something like this? When you call
    RString new_String = stringPool.OpenStringL( _L8("new_string") );
    the newly used string is added to string pool, so you do not need to care about it.

    BR
    STeN

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    45

    Re: Check the existence of a string in a string pool (table)

    Well, I was intending to use a string pool as a dictionary for a Json parser and wanted to use the dictionary to verify if unwanted object names where found during parsing. Anyways, I guess a solution would be to open the string to the pool using OpenStringL and verify the OriginalTableRef on the returned string. If it is null then the string was not in the dictionary. A find method would have been nice for situations like this one.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Check the existence of a string in a string pool (table)

    Normally this would be a use-case for RPtrHashSet. For some strange, and probably super-secret reason it is not present in the S60 SDK-s. If you like strange hacks, you can get the headers from a UIQ SDK, they are reported to work.

Similar Threads

  1. table with string
    By naneziris in forum Mobile Java General
    Replies: 2
    Last Post: 2005-09-05, 14:07
  2. HTTP POST failing and discrepancy of string tables in SDK and 6600
    By cas_dominic in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-05-31, 08:08
  3. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  4. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31
  5. SMS Msg using VB Application
    By gurup83 in forum General Messaging
    Replies: 2
    Last Post: 2002-07-11, 04:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •