Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 620701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:47:33+00:00 2026-05-13T18:47:33+00:00

I need to write a program which will browse through strings of various lengths

  • 0

I need to write a program which will browse through strings of various lengths and select only those which are written using symbols from set defined by me (particularly Japanese letters). Strings will contain words written in different languages (German, French, Arabic, Russian, English etc). Obviously there is huge number of possible characters. I do not know which structure to use for that? I am using Delphi 7 right now. Can anybody suggest how to write such program?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:47:34+00:00Added an answer on May 13, 2026 at 6:47 pm

    Obviously you would be better off with Delphi 2010, since the VCL in delphi 7 is not aware of Unicode strings. You can use WideString types, and WideChar types in Delphi 7, and you can install a component set like the TNT Unicode Components to help you create a user interface that can display your results.

    For a very-large-set type, consider using a bit array like TBits. A bit array of length 65536 would hold enough to contain every UTF-16 code-point. Checking if Char X is in Set Y, would be basically:

    function WideCharsInSet( wcstr:WideString; wcset:TBits):Boolean;
    var
     n:Integer;
     wc:WideChar;
    begin
    result := false;
    for n := 1 to Length(wcstr) do begin
      wc := wcstr[n];
      if wcset[Ord(wc)] then
          result := true;
    end;
    end;
    
    procedure Demo;
    var
     wcset1:TBits;
     s:WideString;
    begin
     wcset1 := TBits.Create;
     try
      // 1157 - Hangul Korean codepoint I found with Char Map
        wcset1[1157] := true;         
        // go get a string value s:
        s := WideChar(1157);
    // return true if at least one element in set wcset is found in string s:
        if WideCharsInSet(s,wcset1) then begin
            Application.MessageBox('Found it','found it',MB_OK);
        end;
    
     finally
      wcset1.Free;
     end;
    
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 337k
  • Answers 337k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I would make a user control called "AuthorList.ascx" which outputs… May 14, 2026 at 3:59 am
  • Editorial Team
    Editorial Team added an answer I was able to fix the problem. The folder /tmp/.ruby_inline/… May 14, 2026 at 3:59 am
  • Editorial Team
    Editorial Team added an answer Use ` instead of ' in the database name, and… May 14, 2026 at 3:59 am

Related Questions

I want to write a program that analyzes your fantasy baseball team and notifies
I usually have more then 10 opened application windows. When I write code I
I'm trying to write a program which will pseudorandomly autogenerate (based on a seed
I need to run a task every 10 mins from morning 9 AM to
I'm trying to write a simple program in VC++ which will just initialize the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.