Giter VIP home page Giter VIP logo

arabicstring's Introduction

result

Arabic MAP : https://en.wikipedia.org/wiki/Arabic_script_in_Unicode

ArabicString

لتعريف وطباعه وادخال متغيرات بلغه العربيه ف الكونسل

كيفية التركيب

قم بإضافة الملفين للمشروع الخاص بك ققط ويجب عليك وضع الترميز : UTF-8-BOM

أمثله

#include <iostream>
#include "arabicstring.h"
using namespace std;

int main()
{
	ArabicString::goArabic();// to set arabic out/in console

	ArabicString test = L"اتز هيما ساما";
	test.makeShape(); // لصنع شكل نص المتغير
	wcout << test.getText() << endl; // ارجاع النص
	wcout << test.getShape() << endl; // ارجاع شكل النص
	wcout << test.getReShape()<<endl; //ارجاع  شكل النص بالمعكوس بسبب الكونسل من يسار لليمين 

	
	ArabicString test2;
	wcin >> test2;// سوف يقرا كلمه واحده فقط
	test2.makeShape();
	wcout << test2.getReShape() << endl;
	
	ArabicString test3;
	wchar_t str[11];
	wcin.getline(str,10); // لقراءه السطر بالكامل حتي الحد الذي تحدده
	test3 = str;
	test3.makeShape();
	wcout << test3.getReShape() << endl;
	
	return 0;
}

الدوال

ArabicString::goArabic(); استدعائها في بدايه البرنامج لتهيئة الكونسل للغه العربيه
makeShape() لتقوم بعمل شكل النص المدخل
getTextLength() ارجاع طول النص الاصلي
getShapeLength() ارجاع طول الشكل
getText() ارجاع قيمه النص
getShape() ارجاع شكل النص
getReShape() ارجاع شكل النص بالمعكوس ( السبب من استعمال العكسي لانه الكونسل من يسار لليمين ف يجب استدعاء الشكل العكسي )

كلمه اخيره

ماب اللغه العربيه ماخوذ من سورس كود ماتين2

English

To init string with arabic characters for in/out.

HOW-TO

Just add the files to ur project. encode of the file must be : UTF-8-BOM

Functions

ArabicString::goArabic(); To init the arabic in/out for the console
makeShape() To make the shpae of the text in arabic
getTextLength() Length of the text
getShapeLength() Length of the shape text
getText() Get the text
getShape() Get the shape text
getReShape() Get the shape text in reverse order cuz the console in ltr mode

Last word

Arabic characters map taken from metin2 source cdoe

arabicstring's People

Contributors

mrlibya avatar

Stargazers

 avatar Dr Amr Osman avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.